a2server/scripts/a2server-1-storage.txt
T. Joseph Carter f1b141bd9c Move 1-storage fixup code to fixup
1-storage included a block that moved /media/A2SHARED (which was a nono
for us to use under FHS) to /srv/A2SERVER.  This has now been moved to
fixup.
2018-09-08 18:49:52 -07:00

12 lines
351 B
Bash
Executable File

#! /bin/bash
# vim: set tabstop=4 shiftwidth=4 noexpandtab filetype=sh:
# --- Setting up the share volume
if [[ ! -d /srv/A2SERVER ]]; then
echo "A2SERVER: Preparing the shared files volume..."
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