diff options
| author | Steven Dake <stdake@cisco.com> | 2015-08-12 09:04:10 -0700 |
|---|---|---|
| committer | Steven Dake <stdake@cisco.com> | 2015-08-12 12:04:58 -0700 |
| commit | 8ae3b0d67e92450adf2ae411d64d5710d7da3687 (patch) | |
| tree | 61934e7b81fed16828ed0d5419edf1442c272bba /docker/common/cinder/cinder-backup | |
| parent | e323cbe11ec4731e672822013fb773c02d0b984e (diff) | |
| download | kolla-8ae3b0d67e92450adf2ae411d64d5710d7da3687.tar.gz kolla-8ae3b0d67e92450adf2ae411d64d5710d7da3687.zip | |
Rename cinder-app to cinder to be more consistent
Closes-Bug: #1482986
Change-Id: I72619ef18d24038b46d09e77887d6610ef6e8327
Diffstat (limited to 'docker/common/cinder/cinder-backup')
| -rw-r--r-- | docker/common/cinder/cinder-backup/config-external.sh | 9 | ||||
| -rwxr-xr-x | docker/common/cinder/cinder-backup/start.sh | 14 |
2 files changed, 23 insertions, 0 deletions
diff --git a/docker/common/cinder/cinder-backup/config-external.sh b/docker/common/cinder/cinder-backup/config-external.sh new file mode 100644 index 000000000..b3d258251 --- /dev/null +++ b/docker/common/cinder/cinder-backup/config-external.sh @@ -0,0 +1,9 @@ +OURCE="/opt/kolla/cinder/cinder.conf" +TARGET="/etc/cinder/cinder.conf" +OWNER="cinder" + +if [[ -f "$SOURCE" ]]; then + cp $SOURCE $TARGET + chown ${OWNER}: $TARGET + chmod 0644 $TARGET +fi diff --git a/docker/common/cinder/cinder-backup/start.sh b/docker/common/cinder/cinder-backup/start.sh new file mode 100755 index 000000000..748c47d91 --- /dev/null +++ b/docker/common/cinder/cinder-backup/start.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +set -o errexit + +CMD="/usr/bin/cinder-backup" +ARGS="" + +# Loading common functions. +source /opt/kolla/kolla-common.sh + +# Execute config strategy +set_configs + +exec $CMD $ARGS |
