diff --git a/scripts/restore b/scripts/restore index 2a93290..6932804 100644 --- a/scripts/restore +++ b/scripts/restore @@ -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" #=================================================