uscrontab: s'assurer que USER est défini

This commit is contained in:
Jephté Clain 2023-06-15 15:28:15 +04:00
parent 63674ef02b
commit f36be0dfb2
1 changed files with 4 additions and 0 deletions

View File

@ -358,6 +358,10 @@ function check_pause() {
return 1 return 1
} }
# $USER est requis
[ -n "$LOGNAME" ] || export LOGNAME="$(id -un)"
[ -n "$USER" ] || export USER="$LOGNAME"
USCRONTAB_CTLINE="* * * * * $script" USCRONTAB_CTLINE="* * * * * $script"
USCRONTAB_LOCKDELAY=8 USCRONTAB_LOCKDELAY=8
USCRONTAB_STOPEC=101 USCRONTAB_STOPEC=101