Adding user within template

This commit is contained in:
Bob Mottram 2018-04-11 13:56:24 +01:00
parent dd9cef862e
commit 3b66645653
1 changed files with 2 additions and 2 deletions

View File

@ -873,9 +873,9 @@ fi
if [ $app_daemon ]; then
echo ''
if [[ ! "$app_dir" ]]; then
echo " useradd -d \"TODO_PATH_TO_INSTALL\" -s /bin/false ${app_name}"
echo " adduser --system --home=\"TODO_PATH_TO_INSTALL\" --group ${app_name}"
else
echo " useradd -d \"${app_dir}\" -s /bin/false ${app_name}"
echo " adduser --system --home=\"${app_dir}\" --group ${app_name}"
fi
echo ''
echo " { echo '[Unit]';"