Auto-creation of volumes mountpoint with sudo...
This commit is contained in:
parent
6e7ab8ffab
commit
68974a9717
@ -12,7 +12,7 @@ source ~/openrc.sh
|
|||||||
INSTANCE=$(~/env_py3/bin/openstack server show -c id --format value $(hostname))
|
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
|
for VOLUME in reverse-proxy_conf reverse-proxy_conf_enabled reverse-proxy_letsencrypt
|
||||||
do
|
do
|
||||||
mkdir -p /mnt/volumes/${VOLUME}
|
sudo mkdir -p /mnt/volumes/${VOLUME}
|
||||||
if ! mountpoint -q /mnt/volumes/${VOLUME}
|
if ! mountpoint -q /mnt/volumes/${VOLUME}
|
||||||
then
|
then
|
||||||
VOLUME_ID=$(/home/yohan/env_py3/bin/openstack volume show ${VOLUME} -c id --format value)
|
VOLUME_ID=$(/home/yohan/env_py3/bin/openstack volume show ${VOLUME} -c id --format value)
|
||||||
|
Loading…
Reference in New Issue
Block a user