autocommit
This commit is contained in:
parent
66dd946fe5
commit
da5d5eec1e
@ -1 +1 @@
|
|||||||
0 8 * * * /data/server-origin/cron.sh
|
0 10 * * * bash /data/server-origin/cron.sh
|
||||||
|
3
cron.sh
3
cron.sh
@ -1,5 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
LOG_FILE="/data/logs/cron.log"
|
||||||
|
exec > $LOG_FILE 2>&1
|
||||||
|
|
||||||
if [ "$(id -u)" != "0" ]; then
|
if [ "$(id -u)" != "0" ]; then
|
||||||
echo -e "\033[31mThis script requires superuser rights\033[0m"
|
echo -e "\033[31mThis script requires superuser rights\033[0m"
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user