2015-10-09 12:29:32 +00:00
|
|
|
#! /bin/bash
|
|
|
|
# vim: set tabstop=4 shiftwidth=4 expandtab filetype=sh:
|
2015-10-03 12:25:44 +00:00
|
|
|
|
|
|
|
# --- Setting up the share volume
|
|
|
|
|
|
|
|
|
|
|
|
# skip if we're already set up
|
|
|
|
if [[ -d /media/A2SHARED ]]; then
|
|
|
|
|
|
|
|
echo "A2SERVER: Shared disk is already prepared for use."
|
2015-10-09 12:29:32 +00:00
|
|
|
|
2015-10-03 12:25:44 +00:00
|
|
|
else
|
2015-10-09 12:29:32 +00:00
|
|
|
|
2015-10-03 12:25:44 +00:00
|
|
|
echo "A2SERVER: Preparing the shared files disk..."
|
2015-10-09 12:29:32 +00:00
|
|
|
|
2015-10-03 12:25:44 +00:00
|
|
|
sudo mkdir /media/A2SHARED
|
2015-10-09 12:29:32 +00:00
|
|
|
|
2015-10-03 12:25:44 +00:00
|
|
|
sudo chown $USER:$USER /media/A2SHARED
|
|
|
|
|
2015-10-09 12:29:32 +00:00
|
|
|
fi
|