Created
June 30, 2016 13:41
-
-
Save mjrider/504eae9bbb396ff1ca98ca1783643f00 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Absolute path to this script. /etc/ssl/example.org/update.sh | |
SCRIPT=$(readlink -f $0) | |
# Absolute path this script is in. /etc/ssl/example.org/ | |
SCRIPTPATH=$(dirname $SCRIPT) | |
cd "${SCRIPTPATH}" || exit 1 | |
/srv/simp_le/venv/bin/simp_le -f full.pem -f account_key.json --default_root /var/www/ \ | |
-d srv.example.org -d example.org -d home.example.org -d mail.example.org | |
EXIT=$? | |
if [ ${EXIT} -eq 0 ] ; then | |
service apache2 reload | |
service dovecot reload | |
service exim4 reload | |
fi | |
if [ ${EXIT} -eq 1 ] ; then | |
EXIT=0 | |
fi | |
exit ${EXIT} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment