mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-06 01:32:46 +00:00
Check for shfmt -w -i 2 plex.sh
This commit is contained in:
parent
b2be1eb278
commit
238cd4bc5d
@ -8,7 +8,6 @@
|
|||||||
|
|
||||||
#returns 0 means success, otherwise error.
|
#returns 0 means success, otherwise error.
|
||||||
|
|
||||||
|
|
||||||
# Settings for Plex Media Server:
|
# Settings for Plex Media Server:
|
||||||
#
|
#
|
||||||
# PLEX_PKCS12_password -- Password for the PKCS file. Required by plex
|
# PLEX_PKCS12_password -- Password for the PKCS file. Required by plex
|
||||||
@ -35,14 +34,12 @@ plex_deploy() {
|
|||||||
_getdeployconf PLEX_PKCS12_file
|
_getdeployconf PLEX_PKCS12_file
|
||||||
_getdeployconf PLEX_sudo_required
|
_getdeployconf PLEX_sudo_required
|
||||||
|
|
||||||
|
|
||||||
#_DEPLOY_PLEX_WIKI="https://github.com/acmesh-official/acme.sh/wiki/deploy-to-plex"
|
#_DEPLOY_PLEX_WIKI="https://github.com/acmesh-official/acme.sh/wiki/deploy-to-plex"
|
||||||
|
|
||||||
|
|
||||||
if [ -z "$PLEX_PKCS12_password" ]; then
|
if [ -z "$PLEX_PKCS12_password" ]; then
|
||||||
_err "The PLEX_PKCS12_password variable is not defined. Plex requires a password for the certificate."
|
_err "The PLEX_PKCS12_password variable is not defined. Plex requires a password for the certificate."
|
||||||
#_err "See: $_DEPLOY_PLEX_WIKI"
|
#_err "See: $_DEPLOY_PLEX_WIKI"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
_debug2 PLEX_PKCS12_password "$PLEX_PKCS12_password"
|
_debug2 PLEX_PKCS12_password "$PLEX_PKCS12_password"
|
||||||
|
|
||||||
@ -69,11 +66,11 @@ plex_deploy() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if systemctl -q is-active plexmediaserver; then
|
if systemctl -q is-active plexmediaserver; then
|
||||||
_debug2 "Plex is active. Restarting..."
|
_debug2 "Plex is active. Restarting..."
|
||||||
if [ -z "$PLEX_sudo_required" ]; then
|
if [ -z "$PLEX_sudo_required" ]; then
|
||||||
_reload_cmd="systemctl restart plexmediaserver.service"
|
_reload_cmd="systemctl restart plexmediaserver.service"
|
||||||
else
|
else
|
||||||
_reload_cmd="sudo systemctl restart plexmediaserver.service"
|
_reload_cmd="sudo systemctl restart plexmediaserver.service"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ -z "$_reload_cmd" ]; then
|
if [ -z "$_reload_cmd" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user