Adding user within template
This commit is contained in:
parent
dd9cef862e
commit
3b66645653
|
@ -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]';"
|
||||
|
|
Loading…
Reference in New Issue