Skip to content

Instantly share code, notes, and snippets.

@mjrider
Created June 30, 2016 13:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjrider/504eae9bbb396ff1ca98ca1783643f00 to your computer and use it in GitHub Desktop.
Save mjrider/504eae9bbb396ff1ca98ca1783643f00 to your computer and use it in GitHub Desktop.
#!/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