acmesh-ssl.bash: remove bitbot

This commit is contained in:
Aminda Suomalainen 2019-09-13 16:33:00 +03:00
parent 6d103ec071
commit 05c0e6500b
No known key found for this signature in database
GPG Key ID: 0C207F07B2F32B67

View File

@ -19,7 +19,6 @@ DOMAINNAME=relpda.mikaela.info
SYNCPLAYDIR=/opt/syncplay/ssl
MUMBLEDIR=/var/lib/mumble-server/ssl
ZNCDIR=/home/znc/.znc/ssl
BITBOTDIR=/home/bitbot/ssl
NGINXDIR=/etc/nginx/ssl
# Where is acme.sh + flags applying to them all
@ -30,7 +29,7 @@ SYSTEMCTLRESTART="systemctl restart --quiet"
SYSTEMCTLRELOAD="systemctl reload --quiet"
# Start by creating the directories if they don't exist
/bin/mkdir -p $SYNCPLAYDIR $MUMBLEDIR $ZNCDIR $BITBOTDIR $NGINXDIR
/bin/mkdir -p $SYNCPLAYDIR $MUMBLEDIR $ZNCDIR $NGINXDIR
# Syncplay - note: reloads certs on every connect like ZNC
$ACMESH --cert-file $SYNCPLAYDIR/cert.pem --key-file $SYNCPLAYDIR/privkey.pem --ca-file $SYNCPLAYDIR/chain.pem
@ -50,11 +49,6 @@ $ACMESH --fullchain-file $ZNCDIR/fullchain.cer --key-file $ZNCDIR/$DOMAINNAME.ke
chmod -R 700 $ZNCDIR
chown -R znc:znc $ZNCDIR
# Bitbot - would accept SIGUSR1 for reloading things including cert, but too painful
$ACMESH --key-file $BITBOTDIR/key.pem --fullchain-file $BITBOTDIR/cert.pem --reloadcmd "$SYSTEMCTLRELOAD bitbot"
chmod -R 700 $BITBOTDIR
chown -R bitbot:bitbot $BITBOTDIR
# nginx
$ACMESH --key-file $NGINXDIR/key.pem --fullchain-file $NGINXDIR/cert.pem --reloadcmd "$SYSTEMCTLRESTART nginx"
chmod -R 700 $NGINXDIR