aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
Diffstat (limited to 'docker')
-rw-r--r--docker/horizon/extend_start.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/docker/horizon/extend_start.sh b/docker/horizon/extend_start.sh
index 454e1fa49..39302b9a0 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