Auto-creation of volumes mountpoint with sudo...
This commit is contained in:
parent
b0be8d04ca
commit
a416ef63cb
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
source ~/openrc.sh
|
source ~/openrc.sh
|
||||||
INSTANCE=$(/home/yohan/env_py3/bin/openstack server show -c id --format value $(hostname))
|
INSTANCE=$(/home/yohan/env_py3/bin/openstack server show -c id --format value $(hostname))
|
||||||
mkdir -p /mnt/volumes/scuttle_code /mnt/volumes/scuttle_php5-fpm_conf
|
sudo mkdir -p /mnt/volumes/scuttle_code /mnt/volumes/scuttle_php5-fpm_conf
|
||||||
if ! mountpoint -q /mnt/volumes/scuttle_code
|
if ! mountpoint -q /mnt/volumes/scuttle_code
|
||||||
then
|
then
|
||||||
VOLUME_ID=$(/home/yohan/env_py3/bin/openstack volume show scuttle_code -c id --format value)
|
VOLUME_ID=$(/home/yohan/env_py3/bin/openstack volume show scuttle_code -c id --format value)
|
||||||
|
Loading…
Reference in New Issue
Block a user