Make creating /srv/A2SERVER more robust

This commit is contained in:
T. Joseph Carter 2018-09-01 15:37:44 -07:00
parent 33d1d058ba
commit f3ae970d37

View File

@ -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