|
@ -31,7 +31,7 @@ |
|
|
# - `export SYNO_DeviceID=""` - required for omitting 2FA-OTP (might be |
|
|
# - `export SYNO_DeviceID=""` - required for omitting 2FA-OTP (might be |
|
|
# deprecated, auth with OTP code instead) |
|
|
# deprecated, auth with OTP code instead) |
|
|
# 3. Run command: |
|
|
# 3. Run command: |
|
|
# acme.sh --deploy --deploy-hook synology_dsm -d example.com |
|
|
|
|
|
|
|
|
# `acme.sh --deploy --deploy-hook synology_dsm -d example.com`` |
|
|
################################################################################ |
|
|
################################################################################ |
|
|
# Dependencies: |
|
|
# Dependencies: |
|
|
# - curl |
|
|
# - curl |
|
@ -73,7 +73,6 @@ synology_dsm_deploy() { |
|
|
_debug2 "Back to use existing user rather than temp admin user." |
|
|
_debug2 "Back to use existing user rather than temp admin user." |
|
|
SYNO_UseTempAdmin="" |
|
|
SYNO_UseTempAdmin="" |
|
|
fi |
|
|
fi |
|
|
_savedeployconf SYNO_UseTempAdmin "$SYNO_UseTempAdmin" |
|
|
|
|
|
|
|
|
|
|
|
if [ -n "$SYNO_UseTempAdmin" ]; then |
|
|
if [ -n "$SYNO_UseTempAdmin" ]; then |
|
|
if ! _exists synouser || ! _exists synogroup; then |
|
|
if ! _exists synouser || ! _exists synogroup; then |
|
@ -288,6 +287,7 @@ synology_dsm_deploy() { |
|
|
if [ -n "$SYNO_UseTempAdmin" ]; then |
|
|
if [ -n "$SYNO_UseTempAdmin" ]; then |
|
|
_savedeployconf SYNO_Username "" |
|
|
_savedeployconf SYNO_Username "" |
|
|
_savedeployconf SYNO_Password "" |
|
|
_savedeployconf SYNO_Password "" |
|
|
|
|
|
_savedeployconf SYNO_UseTempAdmin "$SYNO_UseTempAdmin" |
|
|
else |
|
|
else |
|
|
_savedeployconf SYNO_Username "$SYNO_Username" |
|
|
_savedeployconf SYNO_Username "$SYNO_Username" |
|
|
_savedeployconf SYNO_Password "$SYNO_Password" |
|
|
_savedeployconf SYNO_Password "$SYNO_Password" |
|
|