@ -2,7 +2,8 @@
LOG_FILE="/data/logs/cron.log"
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
echo -e "\033[31mThis script requires superuser rights\033[0m"
The note is not visible to the blocked user.