From 10a46ad7216af83e5b23218e6d795ba2ee38ce35 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Fri, 13 Sep 2019 00:51:18 +0300 Subject: [PATCH] acmesh-ssl.bash: introduce $SYSTEMCTLRELOAD for bitbot --- bash/acmesh-ssl.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bash/acmesh-ssl.bash b/bash/acmesh-ssl.bash index f8caa47..3a22d39 100755 --- a/bash/acmesh-ssl.bash +++ b/bash/acmesh-ssl.bash @@ -26,6 +26,7 @@ ACMESH="/root/.acme.sh/acme.sh --install-cert -d $DOMAINNAME" # restarting with systemctl 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 @@ -49,6 +50,6 @@ 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" +$ACMESH --key-file $BITBOTDIR/key.pem --fullchain-file $BITBOTDIR/cert.pem --reloadcmd "$SYSTEMCTLRELOAD bitbot" chmod -R 700 $BITBOTDIR chown -R bitbot:bitbot $BITBOTDIR