create datserver directory

This commit is contained in:
Bob Mottram 2018-04-09 13:38:26 +01:00
parent b200d55769
commit dace6d3f48
1 changed files with 4 additions and 0 deletions

View File

@ -272,6 +272,10 @@ function install_datserver {
set_completion_param "datserver version" "$DATSERVER_DAT_VERSION"
if [ -d $DATSERVER_DIRECTORY ]; then
rm -rf $DATSERVER_DIRECTORY
fi
mkdir $DATSERVER_DIRECTORY
useradd -d "$DATSERVER_DIRECTORY" -s /bin/false datserver
if [ ! -d $DATSERVER_DIRECTORY ]; then
echo $'dat directory was not created'