uscrontab: s'assurer que USER est défini
This commit is contained in:
parent
63674ef02b
commit
f36be0dfb2
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue