créer le fichier de planification avec les bons droits
This commit is contained in:
parent
16a8af946a
commit
2fa62eb6d9
|
@ -265,6 +265,10 @@ if [ "$action" == "edit" ]; then
|
||||||
crontab="$USCRONTAB_USERFILE"
|
crontab="$USCRONTAB_USERFILE"
|
||||||
fi
|
fi
|
||||||
enote "Edition de $crontab"
|
enote "Edition de $crontab"
|
||||||
|
if [ ! -f "$crontab" ]; then
|
||||||
|
touch "$crontab"
|
||||||
|
chmod 640 "$crontab"
|
||||||
|
fi
|
||||||
"${EDITOR:-vi}" "$crontab"
|
"${EDITOR:-vi}" "$crontab"
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue