Creation of user account for datserver

This commit is contained in:
Bob Mottram 2018-04-09 14:40:54 +01:00
parent 842d72b0ad
commit 8b8d3b5b96
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ function install_datserver {
rm -rf $DATSERVER_DIRECTORY
fi
mkdir $DATSERVER_DIRECTORY
useradd -d "$DATSERVER_DIRECTORY" -s /bin/false datserver
useradd -c "datserver system account" -d "$DATSERVER_DIRECTORY" -m -r -g datserver datserver
if [ ! -d $DATSERVER_DIRECTORY ]; then
echo $'dat directory was not created'
exit 9568356