Skip to content
Snippets Groups Projects
Verified Commit 2d6b461e authored by David Beniamine's avatar David Beniamine
Browse files

Domains as a parameter

parent 70b79811
No related branches found
No related tags found
No related merge requests found
...@@ -23,8 +23,14 @@ echo "deb http://ftp.debian.org/debian stretch-backports main" > /etc/apt/source ...@@ -23,8 +23,14 @@ echo "deb http://ftp.debian.org/debian stretch-backports main" > /etc/apt/source
apt-get update && apt-get -t stretch-backports install certbot python-certbot-apache apt-get update && apt-get -t stretch-backports install certbot python-certbot-apache
if [ -z "$1" ]
then
DOMAINS="$(echo `echo ${MODS} | tr ' ' '\n' | grep -v 'Base\|MySQL'` \ DOMAINS="$(echo `echo ${MODS} | tr ' ' '\n' | grep -v 'Base\|MySQL'` \
| tr [:upper:] [:lower:] | sed -e "s/ /.${DOMAIN},/g" -e "s/tetrasback/tetras-back/" ).${DOMAIN}" | tr [:upper:] [:lower:] | sed -e "s/ /.${DOMAIN},/g" -e "s/tetrasback/tetras-back/" ).${DOMAIN}"
else
DOMAINS=$1
fi
ARGS="--hsts --email=${SERVER_ADMIN} --domains=${DOMAINS} --text --agree-tos" ARGS="--hsts --email=${SERVER_ADMIN} --domains=${DOMAINS} --text --agree-tos"
line="0 1 * * `date +%u` /usr/bin/certbot renew > /var/log/certbot.log \ line="0 1 * * `date +%u` /usr/bin/certbot renew > /var/log/certbot.log \
2>&1 > /dev/null" 2>&1 > /dev/null"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment