acmesh-ssl.bash: add bitbot

This commit is contained in:
Aminda Suomalainen 2019-08-16 17:42:27 +03:00
parent 5972f3d5c6
commit da5897f5f5
No known key found for this signature in database
GPG Key ID: 0C207F07B2F32B67

View File

@ -19,6 +19,7 @@ DOMAINNAME=relpda.mikaela.info
SYNCPLAYDIR=/opt/syncplay/ssl
MUMBLEDIR=/var/lib/mumble-server/ssl
ZNCDIR=/home/znc/.znc/ssl
BITBOTDIR=/home/bitbot/ssl
# Where is acme.sh + flags applying to them all
ACMESH="/root/.acme.sh/acme.sh --install-cert -d $DOMAINNAME"
@ -46,3 +47,8 @@ chown -R mumble-server:mumble-server $MUMBLEDIR/
$ACMESH --fullchain-file $ZNCDIR/fullchain.cer --key-file $ZNCDIR/$DOMAINNAME.key
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 "$SYSTEMCTLRESTART bitbot"
chmod -R 700 $BITBOTDIR
chown -R bitbot:bitbot $BITBOTDIR