Check for shfmt -w -i 2 plex.sh

This commit is contained in:
Andrew Ferguson 2022-01-26 11:20:35 -08:00
parent b2be1eb278
commit 238cd4bc5d

View File

@ -8,7 +8,6 @@
#returns 0 means success, otherwise error.
# Settings for Plex Media Server:
#
# PLEX_PKCS12_password -- Password for the PKCS file. Required by plex
@ -35,14 +34,12 @@ plex_deploy() {
_getdeployconf PLEX_PKCS12_file
_getdeployconf PLEX_sudo_required
#_DEPLOY_PLEX_WIKI="https://github.com/acmesh-official/acme.sh/wiki/deploy-to-plex"
if [ -z "$PLEX_PKCS12_password" ]; then
_err "The PLEX_PKCS12_password variable is not defined. Plex requires a password for the certificate."
#_err "See: $_DEPLOY_PLEX_WIKI"
return 1
return 1
fi
_debug2 PLEX_PKCS12_password "$PLEX_PKCS12_password"
@ -69,11 +66,11 @@ plex_deploy() {
fi
if systemctl -q is-active plexmediaserver; then
_debug2 "Plex is active. Restarting..."
_debug2 "Plex is active. Restarting..."
if [ -z "$PLEX_sudo_required" ]; then
_reload_cmd="systemctl restart plexmediaserver.service"
else
_reload_cmd="sudo systemctl restart plexmediaserver.service"
else
_reload_cmd="sudo systemctl restart plexmediaserver.service"
fi
fi
if [ -z "$_reload_cmd" ]; then