From cd53c536c37e6d8a3279e20a1a8cfabe872e0b8a Mon Sep 17 00:00:00 2001 From: Moritz H Date: Sun, 17 Jun 2018 00:27:44 +0200 Subject: [PATCH] save fritzbox deploy credentials mutable --- deploy/fritzbox.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/deploy/fritzbox.sh b/deploy/fritzbox.sh index 943b198d..e942ec3d 100644 --- a/deploy/fritzbox.sh +++ b/deploy/fritzbox.sh @@ -32,9 +32,9 @@ fritzbox_deploy() { return 1 fi - _fritzbox_username="${DEPLOY_FRITZBOX_USERNAME}" - _fritzbox_password="${DEPLOY_FRITZBOX_PASSWORD}" - _fritzbox_url="${DEPLOY_FRITZBOX_URL}" + _fritzbox_username="${DEPLOY_FRITZBOX_USERNAME:-$(_readaccountconf_mutable DEPLOY_FRITZBOX_USERNAME)}" + _fritzbox_password="${DEPLOY_FRITZBOX_PASSWORD:-$(_readaccountconf_mutable DEPLOY_FRITZBOX_PASSWORD)}" + _fritzbox_url="${DEPLOY_FRITZBOX_URL:-$(_readaccountconf_mutable DEPLOY_FRITZBOX_URL)}" _debug _fritzbox_url "$_fritzbox_url" _debug _fritzbox_username "$_fritzbox_username" @@ -52,9 +52,9 @@ fritzbox_deploy() { return 1 fi - _saveaccountconf DEPLOY_FRITZBOX_USERNAME "${_fritzbox_username}" - _saveaccountconf DEPLOY_FRITZBOX_PASSWORD "${_fritzbox_password}" - _saveaccountconf DEPLOY_FRITZBOX_URL "${_fritzbox_url}" + _saveaccountconf_mutable DEPLOY_FRITZBOX_USERNAME "${_fritzbox_username}" + _saveaccountconf_mutable DEPLOY_FRITZBOX_PASSWORD "${_fritzbox_password}" + _saveaccountconf_mutable DEPLOY_FRITZBOX_URL "${_fritzbox_url}" # Do not check for a valid SSL certificate, because initially the cert is not valid, so it could not install the LE generated certificate export HTTPS_INSECURE=1