Adjusting Cron Jobs
This commit is contained in:
parent
bf2d3308a6
commit
c86d4a02e9
4 changed files with 19 additions and 4 deletions
|
|
@ -47,6 +47,14 @@ if [[ ! -z "$1" ]]; then
|
|||
RELOAD="false"
|
||||
fi
|
||||
|
||||
/scripts/certbot.sh
|
||||
|
||||
# If Certbot reloads successfully will create the file /tmp/force-reload
|
||||
if [ -f /tmp/force-reload ]; then
|
||||
RELOAD="true"
|
||||
rm /tmp/force-reload
|
||||
fi
|
||||
|
||||
if [[ "$RELOAD" == "true" ]]; then
|
||||
echo "Reloading..."
|
||||
/usr/sbin/haproxy -W -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -x /var/run/haproxy.sock -sf $(cat /run/haproxy.pid) &
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue