autocommit

This commit is contained in:
leo 2024-08-20 09:47:49 +05:00
parent 66dd946fe5
commit da5d5eec1e
2 changed files with 4 additions and 1 deletions

View File

@ -1 +1 @@
0 8 * * * /data/server-origin/cron.sh 0 10 * * * bash /data/server-origin/cron.sh

View File

@ -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