diff options
| author | Zuul <zuul@review.openstack.org> | 2018-01-20 14:08:27 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2018-01-20 14:08:27 +0000 |
| commit | 9ce572a3a872ebb4ee251439206769429d2fa379 (patch) | |
| tree | fd9e9d167cb0308a0c2a26ca8d81192394057a9b /docker | |
| parent | ec0950b20937c67d75b5bab712dd2b57d8be7af5 (diff) | |
| parent | a5cac970ce87e1aecf268c61f9c37a5a3862ca93 (diff) | |
| download | kolla-9ce572a3a872ebb4ee251439206769429d2fa379.tar.gz kolla-9ce572a3a872ebb4ee251439206769429d2fa379.zip | |
Merge "Check whether the source file exists before configuring the dashboard"
Diffstat (limited to 'docker')
| -rw-r--r-- | docker/horizon/extend_start.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docker/horizon/extend_start.sh b/docker/horizon/extend_start.sh index d8e31cf7e..a0e57e15d 100644 --- a/docker/horizon/extend_start.sh +++ b/docker/horizon/extend_start.sh @@ -30,7 +30,9 @@ function config_dashboard { ENABLE=$1 SRC=$2 DEST=$3 - if [[ "${ENABLE}" == "yes" ]] && [[ ! -f "${DEST}" ]]; then + if [[ ! -f ${SRC} ]]; then + echo "WARNING: ${SRC} is required" + elif [[ "${ENABLE}" == "yes" ]] && [[ ! -f "${DEST}" ]]; then cp -a "${SRC}" "${DEST}" FORCE_GENERATE="yes" elif [[ "${ENABLE}" != "yes" ]] && [[ -f "${DEST}" ]]; then |
