mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 21:21:42 +00:00
Cleanup shfmt warnings
This commit is contained in:
parent
548f83c3ad
commit
6459ccb185
@ -74,11 +74,11 @@ synology_dsm_deploy() {
|
|||||||
# use jq because I'm too lazy to figure out what is required to parse json
|
# use jq because I'm too lazy to figure out what is required to parse json
|
||||||
# by hand. Also it seems to be in place for Synology DSM (6.2.1 at least)
|
# by hand. Also it seems to be in place for Synology DSM (6.2.1 at least)
|
||||||
for x in curl jq; do
|
for x in curl jq; do
|
||||||
if ! _exists "$x"; then
|
if ! _exists "$x"; then
|
||||||
_err "Please install $x first."
|
_err "Please install $x first."
|
||||||
_err "We need $x to work."
|
_err "We need $x to work."
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
_base_url="$SYNO_Scheme://$SYNO_Hostname:$SYNO_Port"
|
_base_url="$SYNO_Scheme://$SYNO_Hostname:$SYNO_Port"
|
||||||
@ -133,11 +133,11 @@ synology_dsm_deploy() {
|
|||||||
if [ "$success" = "true" ]; then
|
if [ "$success" = "true" ]; then
|
||||||
restarted=$(echo "$response" | jq -r ".data.restart_httpd")
|
restarted=$(echo "$response" | jq -r ".data.restart_httpd")
|
||||||
if [ "$restarted" = "true" ]; then
|
if [ "$restarted" = "true" ]; then
|
||||||
_info "http services were restarted"
|
_info "http services were restarted"
|
||||||
else
|
else
|
||||||
_info "http services were NOT restarted"
|
_info "http services were NOT restarted"
|
||||||
fi
|
fi
|
||||||
return 0;
|
return 0
|
||||||
else
|
else
|
||||||
code=$(echo "$response" | jq -r ".error.code")
|
code=$(echo "$response" | jq -r ".error.code")
|
||||||
_err "Unable to update certificate, error code $code"
|
_err "Unable to update certificate, error code $code"
|
||||||
|
Loading…
Reference in New Issue
Block a user