diff --git a/slapos-node/template/slapos-node.cron.d b/slapos-node/template/slapos-node.cron.d index ee148ef0008c748482811932eb0ee03496192292..20ca6449dfdc9cade412419f57a5a6b4f57fc746 100644 --- a/slapos-node/template/slapos-node.cron.d +++ b/slapos-node/template/slapos-node.cron.d @@ -9,6 +9,6 @@ MAILTO=root SLAPOS_REPORT_COMMAND="/opt/slapos/bin/slapos node report --maximal_delay=3600 --verbose --logfile=/opt/slapos/slapos-report.log" 0 * * * * root $SLAPOS_REPORT_COMMAND; i=20; while [ $? != 0 ]; do SLAPOS_REPORT_COMMAND; sleep $(($i*60)); if [ $i < 20 ]; then let i++; fi; done; -0 * * * * root /opt/slapos/bin/slapos node format >> /opt/slapos/slapformat.log 2>&1 +0 * * * * root /opt/slapos/bin/slapos node format >> /opt/slapos/slapos-format.log 2>&1 * * * * * root if [ -f /etc/opt/slapos/openvpn-needed ]; then ifconfig tapVPN | grep "Scope:Global" > /dev/null ;if [ $? = 0 ]; then ROUTES=$(ip -6 r l | grep default | awk '{print $5}'); for GW in $ROUTES ; do if [ ! $GW = tapVPN ]; then /sbin/ip -6 route del default dev $GW;fi ;done ;fi ;fi