forked from ISTI-ansible-roles/ansible-roles
acme-sh: fix the unattended scripts. They failed to fix the permissions, so the certificate renewal would fail.
This commit is contained in:
parent
e6d4dcfe93
commit
44ac051834
|
@ -12,10 +12,12 @@ else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
su - acme -s /bin/bash -c '/usr/local/bin/acme-sh-cron-command'
|
chown -R acme:acme "$ACME_SH_HOME"
|
||||||
|
sudo -u acme -s /bin/bash /usr/local/bin/acme-sh-cron-command
|
||||||
|
|
||||||
if [ "$ACME_SH_INSTALL_CERTS" == "True" ] ; then
|
if [ "$ACME_SH_INSTALL_CERTS" == "True" ] ; then
|
||||||
$ACME_SH_BIN $ACME_SH_INSTALL_CERT_REQUEST > "$ACME_SH_INSTALL_LOG_FILE" 2>&1
|
$ACME_SH_BIN $ACME_SH_INSTALL_CERT_REQUEST > "$ACME_SH_INSTALL_LOG_FILE" 2>&1
|
||||||
|
chown -R acme:acme "$ACME_SH_HOME"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit $?
|
exit $?
|
||||||
|
|
|
@ -18,5 +18,6 @@ if [ -d "$ACME_SH_HOME/keys/fakeselfsignedcert" -a -d "$ACME_SH_HOME/certs/fakes
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$ACME_SH_BIN $ACME_SH_INSTALL_CERT_REQUEST > "$ACME_SH_INSTALL_LOG_FILE" 2>&1
|
$ACME_SH_BIN $ACME_SH_INSTALL_CERT_REQUEST > "$ACME_SH_INSTALL_LOG_FILE" 2>&1
|
||||||
|
chown -R acme:acme "$ACME_SH_HOME"
|
||||||
|
|
||||||
exit $?
|
exit $?
|
||||||
|
|
Loading…
Reference in New Issue