Auto-creation of volumes mountpoint.

This commit is contained in:
yohan 2020-02-22 22:28:40 +01:00
parent 637ab5608c
commit ed79f49c5c

View File

@ -12,6 +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}
if ! mountpoint -q /mnt/volumes/${VOLUME}
then
VOLUME_ID=$(/home/yohan/env_py3/bin/openstack volume show ${VOLUME} -c id --format value)