From f36be0dfb24e3528da97bf09660d455e16191919 Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Thu, 15 Jun 2023 15:28:15 +0400 Subject: [PATCH] =?UTF-8?q?uscrontab:=20s'assurer=20que=20USER=20est=20d?= =?UTF-8?q?=C3=A9fini?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uscrontab | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/uscrontab b/uscrontab index daac27a..ade4890 100755 --- a/uscrontab +++ b/uscrontab @@ -358,6 +358,10 @@ function check_pause() { return 1 } +# $USER est requis +[ -n "$LOGNAME" ] || export LOGNAME="$(id -un)" +[ -n "$USER" ] || export USER="$LOGNAME" + USCRONTAB_CTLINE="* * * * * $script" USCRONTAB_LOCKDELAY=8 USCRONTAB_STOPEC=101