Auto-creation of volumes mountpoint with sudo...

This commit is contained in:
yohan 2020-02-26 18:39:34 +01:00
parent e76c71ab48
commit 676a7c25be

View File

@ -12,7 +12,7 @@ source ~/openrc.sh
INSTANCE=$(~/env_py3/bin/openstack server show -c id --format value $(hostname))
for VOLUME in nextcloud
do
mkdir -p /mnt/volumes/${VOLUME}
sudo mkdir -p /mnt/volumes/${VOLUME}
if ! mountpoint -q /mnt/volumes/${VOLUME}
then
VOLUME_ID=$(/home/yohan/env_py3/bin/openstack volume show ${VOLUME} -c id --format value)