Skip to content

Commit

Permalink
use long options rather than short options
Browse files Browse the repository at this point in the history
QubesOS/qubes-issues#1130
(cherry picked from commit f1add4c)
  • Loading branch information
Patrick Schleizer authored and marmarek committed Sep 7, 2019
1 parent 7de3c52 commit c8ddcb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions debian/qubes-core-agent.preinst
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ if [ "$1" = "install" ] ; then
useradd --user-group --create-home --shell /bin/bash user
}
id -u 'tinyproxy' >/dev/null 2>&1 || {
useradd --user-group --system -M --home /run/tinyproxy --shell /bin/false tinyproxy
useradd --user-group --system --no-create-home --home /run/tinyproxy --shell /bin/false tinyproxy
}
usermod -L -a --groups qubes user
usermod --lock --append --groups qubes user

# --------------------------------------------------------------------------
# Remove `mesg` from root/.profile?
Expand All @@ -72,7 +72,7 @@ if [ "$1" = "upgrade" ] ; then
## Allow passwordless login for user "user" (when using 'sudo xl console').
## https://github.com/QubesOS/qubes-issues/issues/1130
if grep -q '^user:\!:' /etc/shadow ; then
passwd user -d >/dev/null || true
passwd user --delete >/dev/null || true
fi
fi

Expand Down

0 comments on commit c8ddcb4

Please sign in to comment.