autocommit

This commit is contained in:
leo 2024-08-20 10:31:39 +05:00
parent da5d5eec1e
commit 866ff52c76
2 changed files with 1 additions and 0 deletions

View File

@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
LOG_FILE="/data/logs/cron.log" LOG_FILE="/data/logs/cron.log"
mkdir -p $(dirname $LOG_FILE)
exec > $LOG_FILE 2>&1 exec > $LOG_FILE 2>&1
if [ "$(id -u)" != "0" ]; then if [ "$(id -u)" != "0" ]; then