From 68974a971745840fd08229ba405e7cb04ddc47cd Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Wed, 26 Feb 2020 18:45:04 +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 4c8b604..982af52 100755 --- a/start_or_update.sh +++ b/start_or_update.sh @@ -12,7 +12,7 @@ source ~/openrc.sh INSTANCE=$(~/env_py3/bin/openstack server show -c id --format value $(hostname)) for VOLUME in reverse-proxy_conf reverse-proxy_conf_enabled reverse-proxy_letsencrypt 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)