openvpn: restart the service after a certificate renewal.

This commit is contained in:
Andrea Dell'Amico 2019-07-03 11:29:51 +02:00
parent 0d0e4ca39f
commit 56c7fd5b17
1 changed files with 2 additions and 2 deletions

View File

@ -17,9 +17,9 @@ fi
echo "Reload the openvpn service" >> $LE_LOG_DIR/openvpn.log echo "Reload the openvpn service" >> $LE_LOG_DIR/openvpn.log
if [ -x /bin/systemctl ] ; then if [ -x /bin/systemctl ] ; then
systemctl reload openvpn >> $LE_LOG_DIR/openvpn.log 2>&1 systemctl restart openvpn >> $LE_LOG_DIR/openvpn.log 2>&1
else else
service openvpn reload >> $LE_LOG_DIR/openvpn.log 2>&1 service openvpn restart >> $LE_LOG_DIR/openvpn.log 2>&1
fi fi
echo "Done." >> $LE_LOG_DIR/openvpn.log echo "Done." >> $LE_LOG_DIR/openvpn.log