1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/emailpoubelle_ynh.git synced 2024-09-03 18:26:29 +02:00

Correct /etc/aliases validation

This commit is contained in:
Krakinou 2019-05-22 10:58:07 +02:00
parent 1a582e5d53
commit c3fd530466

View file

@ -97,7 +97,7 @@ ynh_restore_file "/usr/share/yunohost/hooks/conf_regen/98-postfix_emailpoubelle"
yunohost service regen-conf postfix
#create an alias for deleted junk adresses
if ! [ grep "devnull:/dev/null" /etc/aliases ] ; then
if ! grep -q "devnull:/dev/null" /etc/aliases ; then
cp /etc/aliases /etc/aliases.emailpoubelle.bak #backup it
echo "devnull:/dev/null" | tee -a /etc/aliases
newaliases
@ -108,7 +108,6 @@ fi
#=================================================
ynh_script_progression --message="Reinstall cron job" --time --weight=1
ynh_restore_file "/etc/cron.d/$app"
#=================================================