Fix formatting

This commit is contained in:
Andrew Ferguson 2025-06-10 07:57:02 -07:00
parent fa44e0997d
commit f802fb7240
2 changed files with 2 additions and 6 deletions

View File

@ -37,7 +37,6 @@ plex_deploy() {
#_DEPLOY_PLEX_WIKI="https://github.com/acmesh-official/acme.sh/wiki/deploy-to-plex"
_plex_to_pkcs() {
# The existing _toPkcs command doesn't have an option to specify cipher, so copied here
# to force using a modern cipher, as required by PMS:
@ -51,7 +50,6 @@ plex_deploy() {
${ACME_OPENSSL_BIN:-openssl} pkcs12 -export -out "$_cpfx" -certpbe AES-256-CBC -keypbe AES-256-CBC -macalg SHA256 -inkey "$_ckey" -in "$_ccert" -certfile "$_cca" -password "pass:$pfxPassword"
}
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"
@ -76,7 +74,7 @@ plex_deploy() {
_debug "Generate import pkcs12"
if ! _plex_to_pkcs "$PLEX_PKCS12_file" "$_ckey" "$_ccert" "$_cca" "$PLEX_PKCS12_password"; then
if ! _plex_to_pkcs "$PLEX_PKCS12_file" "$_ckey" "$_ccert" "$_cca" "$PLEX_PKCS12_password"; then
_err "Error generating pkcs12. Please re-run with --debug and report a bug."
return 1
fi

View File

@ -40,7 +40,6 @@ plex_synology_deploy() {
#_DEPLOY_PLEX_WIKI="https://github.com/acmesh-official/acme.sh/wiki/deploy-to-plex"
_plex_to_pkcs() {
# The existing _toPkcs command doesn't have an option to specify cipher, so copied here
# to force using a modern cipher, as required by PMS:
@ -54,7 +53,6 @@ plex_synology_deploy() {
${ACME_OPENSSL_BIN:-openssl} pkcs12 -export -out "$_cpfx" -certpbe AES-256-CBC -keypbe AES-256-CBC -macalg SHA256 -inkey "$_ckey" -in "$_ccert" -certfile "$_cca" -password "pass:$pfxPassword"
}
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"
@ -79,7 +77,7 @@ plex_synology_deploy() {
_debug "Generate import pkcs12"
if ! _plex_to_pkcs "$PLEX_PKCS12_file" "$_ckey" "$_ccert" "$_cca" "$PLEX_PKCS12_password"; then
if ! _plex_to_pkcs "$PLEX_PKCS12_file" "$_ckey" "$_ccert" "$_cca" "$PLEX_PKCS12_password"; then
_err "Error generating pkcs12. Please re-run with --debug and report a bug."
return 1
fi