autocommit
This commit is contained in:
parent
866ff52c76
commit
d4add0faa0
3
cron.sh
3
cron.sh
@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
LOG_FILE="/data/logs/cron.log"
|
LOG_FILE="/data/logs/cron.log"
|
||||||
mkdir -p $(dirname $LOG_FILE)
|
mkdir -p $(dirname $LOG_FILE)
|
||||||
exec > $LOG_FILE 2>&1
|
#exec > $LOG_FILE 2>&1
|
||||||
|
exec > >(tee -a $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"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user