create datserver directory
This commit is contained in:
parent
b200d55769
commit
dace6d3f48
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue