mirror of
https://github.com/openwrt/packages.git
synced 2026-06-17 14:50:07 +04:00
acme-acme.sh: declare staging_moved variable
It's possible that staging_moved variable is undeclared while being accessed. Lets explicitly declare it. Signed-off-by: Vladimir Kochnev <hashtable@yandex.ru>
This commit is contained in:
committed by
Toke Høiland-Jørgensen
parent
9f4e7726ec
commit
893576cecd
@@ -58,6 +58,7 @@ get)
|
||||
|
||||
log info "Running ACME for $main_domain with validation_method $validation_method"
|
||||
|
||||
staging_moved=0
|
||||
if [ -e "$domain_dir" ]; then
|
||||
if [ "$staging" = 0 ] && grep -q "acme-staging" "$domain_dir/$main_domain.conf"; then
|
||||
mv "$domain_dir" "$domain_dir.staging"
|
||||
|
||||
Reference in New Issue
Block a user