créer le fichier de planification avec les bons droits

This commit is contained in:
Jephté Clain 2014-04-23 18:51:28 +04:00
parent 16a8af946a
commit 2fa62eb6d9
1 changed files with 4 additions and 0 deletions

View File

@ -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