From 2fa62eb6d991a762848ed56f3bb11c7986045382 Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Wed, 23 Apr 2014 18:51:28 +0400 Subject: [PATCH] =?UTF-8?q?cr=C3=A9er=20le=20fichier=20de=20planification?= =?UTF-8?q?=20avec=20les=20bons=20droits?= 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 3e5ff15..7b71a3e 100755 --- a/uscrontab +++ b/uscrontab @@ -265,6 +265,10 @@ if [ "$action" == "edit" ]; then crontab="$USCRONTAB_USERFILE" fi enote "Edition de $crontab" + if [ ! -f "$crontab" ]; then + touch "$crontab" + chmod 640 "$crontab" + fi "${EDITOR:-vi}" "$crontab" exit 0