mirror of
https://github.com/RasppleII/a2server.git
synced 2024-12-22 02:30:04 +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
|
||||
echo "A2SERVER: Preparing the shared files volume..."
|
||||
sudo mkdir -p /srv/A2SERVER
|
||||
sudo chown $USER:$USER /srv/A2SERVER
|
||||
mygroup="$(id -ng)"
|
||||
sudo install -d -m 755 -u "$USER" -g "$mygroup" "/srv/A2SERVER"
|
||||
else
|
||||
echo "A2SERVER: Shared volume is already prepared for use."
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user