From 859bdf07f61de15845288a3a14a73f51bfbddd62 Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Wed, 26 Feb 2020 18:20:33 +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 eed8a3e..00144a5 100755 --- a/start_or_update.sh +++ b/start_or_update.sh @@ -2,7 +2,7 @@ # --force-recreate is used to recreate container when crontab file has changed source ~/openrc.sh INSTANCE=$(/home/yohan/env_py3/bin/openstack server show -c id --format value $(hostname)) -mkdir -p /mnt/volumes/elasticsearch_data +sudo mkdir -p /mnt/volumes/elasticsearch_data if ! mountpoint -q /mnt/volumes/elasticsearch_data then VOLUME_ID=$(/home/yohan/env_py3/bin/openstack volume show elasticsearch_data -c id --format value)