Browse Source

fix: [cyclos] fails in case of nonexistent directory

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
upd-docker
Valentin Lab 4 years ago
parent
commit
1ee8e434cb
  1. 1
      cyclos/hooks/pre_deploy

1
cyclos/hooks/pre_deploy

@ -37,6 +37,7 @@ if ! [ -e "$CONTROL_PASSWORD_FILE" ] || [ "$control_password" != "$(cat "$CONTRO
debug "Failed to set password for admin users."
exit 1
fi
mkdir -p "${CONTROL_PASSWORD_FILE%/*}"
e "$control_password" > "$CONTROL_PASSWORD_FILE"
fi

Loading…
Cancel
Save