From a416ef63cb038978129e97fd4eefca532ddab10e Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Wed, 26 Feb 2020 18:45:56 +0100 Subject: [PATCH] Auto-creation of volumes mountpoint with sudo... --- start_or_update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start_or_update.sh b/start_or_update.sh index 0ca4c28..de54d8a 100755 --- a/start_or_update.sh +++ b/start_or_update.sh @@ -1,7 +1,7 @@ #!/bin/bash source ~/openrc.sh INSTANCE=$(/home/yohan/env_py3/bin/openstack server show -c id --format value $(hostname)) -mkdir -p /mnt/volumes/scuttle_code /mnt/volumes/scuttle_php5-fpm_conf +sudo mkdir -p /mnt/volumes/scuttle_code /mnt/volumes/scuttle_php5-fpm_conf if ! mountpoint -q /mnt/volumes/scuttle_code then VOLUME_ID=$(/home/yohan/env_py3/bin/openstack volume show scuttle_code -c id --format value)