mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-10-21 21:31:51 +00:00
Add _cleardeployconf to clear deploy hook keys from domain conf
Mirrors _clearaccountconf_mutable: clears the SAVED_ prefixed key and the legacy unprefixed key. Replaces the local copy in synology_dsm.sh and the direct _cleardomainconf call in multideploy.sh. Closes #4722. Thanks to @sg1888.
This commit is contained in:
1 parent
83b52e0cd7
commit
45c0ad4112
3 files changed
+8
-6
No files matched your search
@@ -2594,6 +2594,13 @@ _savedeployconf() {
|
|||||||
_cleardomainconf "$1"
|
_cleardomainconf "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#key
|
||||||
|
_cleardeployconf() {
|
||||||
|
_cleardomainconf "SAVED_$1"
|
||||||
|
#remove later
|
||||||
|
_cleardomainconf "$1"
|
||||||
|
}
|
||||||
|
|
||||||
#key
|
#key
|
||||||
_getdeployconf() {
|
_getdeployconf() {
|
||||||
_rac_key="$1"
|
_rac_key="$1"
|
||||||
|
|||||||
@@ -210,7 +210,7 @@ _clear_envs() {
|
|||||||
|
|
||||||
echo "$env_pairs" | while IFS='=' read -r _key _value; do
|
echo "$env_pairs" | while IFS='=' read -r _key _value; do
|
||||||
_debug3 "Deleting key" "$_key"
|
_debug3 "Deleting key" "$_key"
|
||||||
_cleardomainconf "SAVED_$_key"
|
_cleardeployconf "$_key"
|
||||||
unset -v "$_key"
|
unset -v "$_key"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -424,11 +424,6 @@ _temp_admin_cleanup() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
#_cleardeployconf key
|
|
||||||
_cleardeployconf() {
|
|
||||||
_cleardomainconf "SAVED_$1"
|
|
||||||
}
|
|
||||||
|
|
||||||
# key
|
# key
|
||||||
_check2cleardeployconfexp() {
|
_check2cleardeployconfexp() {
|
||||||
_key="$1"
|
_key="$1"
|
||||||
|
|||||||