You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
254 B
12 lines
254 B
#!/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
|