Check directory permissions before starting
This commit is contained in:
parent
4165d86e46
commit
ecd3ec73d0
1 changed files with 5 additions and 0 deletions
5
run.sh
5
run.sh
|
@ -7,6 +7,11 @@ mkfifo /tmp/FIFO
|
|||
|
||||
export TERM=linux
|
||||
|
||||
if [ ! -w /ark ]; then
|
||||
echo "[Error] Can't access ark directory. Check permissions on your mapped directory with /ark"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Creating directory tree && symbolic link
|
||||
[ ! -f /ark/arkmanager.cfg ] && cp /home/steam/arkmanager.cfg /ark/arkmanager.cfg
|
||||
[ ! -d /ark/log ] && mkdir /ark/log
|
||||
|
|
Loading…
Reference in a new issue