#!/bin/bash if [ ! -f "/srv/etc/cron.lock" ]; then if [ -f "/srv/etc/cron.json" ]; then touch /srv/etc/cron.lock /usr/bin/php /srv/etc/cron.php rm /srv/etc/cron.json rm /srv/etc/cron.lock else /usr/bin/php /srv/etc/pereodical.php fi fi