From 9deef5b862569d942ee8ebaf811e0945bf7958d0 Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Wed, 26 Feb 2020 18:40:14 +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 861674d..8051f1f 100755 --- a/start_or_update.sh +++ b/start_or_update.sh @@ -10,7 +10,7 @@ source ~/openrc.sh INSTANCE=$(/home/yohan/env_py3/bin/openstack server show -c id --format value $(hostname)) for VOLUME in mysql-server_data mysql-server_dumps 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)