acmesh-ssl.bash: introduce $SYSTEMCTLRELOAD for bitbot

This commit is contained in:
Aminda Suomalainen 2019-09-13 00:51:18 +03:00
parent 0ac85c1678
commit 10a46ad721
No known key found for this signature in database
GPG Key ID: 0C207F07B2F32B67

View File

@ -26,6 +26,7 @@ ACMESH="/root/.acme.sh/acme.sh --install-cert -d $DOMAINNAME"
# restarting with systemctl # restarting with systemctl
SYSTEMCTLRESTART="systemctl restart --quiet" SYSTEMCTLRESTART="systemctl restart --quiet"
SYSTEMCTLRELOAD="systemctl reload --quiet"
# Start by creating the directories if they don't exist # Start by creating the directories if they don't exist
/bin/mkdir -p $SYNCPLAYDIR $MUMBLEDIR $ZNCDIR $BITBOTDIR /bin/mkdir -p $SYNCPLAYDIR $MUMBLEDIR $ZNCDIR $BITBOTDIR
@ -49,6 +50,6 @@ chmod -R 700 $ZNCDIR
chown -R znc:znc $ZNCDIR chown -R znc:znc $ZNCDIR
# Bitbot - would accept SIGUSR1 for reloading things including cert, but too painful # 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" $ACMESH --key-file $BITBOTDIR/key.pem --fullchain-file $BITBOTDIR/cert.pem --reloadcmd "$SYSTEMCTLRELOAD bitbot"
chmod -R 700 $BITBOTDIR chmod -R 700 $BITBOTDIR
chown -R bitbot:bitbot $BITBOTDIR chown -R bitbot:bitbot $BITBOTDIR