Skip to content

Commit

Permalink
port from useradd to adduser
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Schleizer committed Oct 29, 2020
1 parent 544987b commit 7422542
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion usr/bin/sandbox-app-launcher
Expand Up @@ -91,7 +91,11 @@ setup() {
fi

if ! getent passwd | sed -e 's/:.*//g' | grep -qw "${app_user}"; then
useradd -m -d "${app_homedir}" -s /sbin/nologin "${app_user}"
adduser --no-create-home --disabled-login --gecos "" "${app_user}"
fi

if ! [ -d "${app_homedir}" ]; then
mkdir --parents "${app_homedir}"
fi

if ! [ "$(stat -c %a "${app_homedir}")" = "700" ]; then
Expand Down

0 comments on commit 7422542

Please sign in to comment.