mirror of
https://github.com/RasppleII/a2server.git
synced 2024-12-22 17:29:34 +00:00
Make creating /srv/A2SERVER more robust
This commit is contained in:
parent
33d1d058ba
commit
f3ae970d37
@ -18,8 +18,8 @@ fi
|
|||||||
|
|
||||||
if [[ ! -d /srv/A2SERVER ]]; then
|
if [[ ! -d /srv/A2SERVER ]]; then
|
||||||
echo "A2SERVER: Preparing the shared files volume..."
|
echo "A2SERVER: Preparing the shared files volume..."
|
||||||
sudo mkdir -p /srv/A2SERVER
|
mygroup="$(id -ng)"
|
||||||
sudo chown $USER:$USER /srv/A2SERVER
|
sudo install -d -m 755 -u "$USER" -g "$mygroup" "/srv/A2SERVER"
|
||||||
else
|
else
|
||||||
echo "A2SERVER: Shared volume is already prepared for use."
|
echo "A2SERVER: Shared volume is already prepared for use."
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user