diff --git a/scripts/backup b/scripts/backup index f98a529..dbc9b65 100644 --- a/scripts/backup +++ b/scripts/backup @@ -63,6 +63,12 @@ ynh_script_progression --message="Backing up cron configuration..." --time --wei ynh_backup --src_path="/etc/cron.d/$app" +#================================================= +# BACKUP postfix conf +#================================================= +ynh_script_progression --message="Backing up postfix conf configuration..." --time --weight=1 + +ynh_backup "/usr/share/yunohost/hooks/conf_regen/98-postfix_emailpoubelle" #================================================= # END OF SCRIPT diff --git a/scripts/restore b/scripts/restore index 275a3d6..3e2757c 100644 --- a/scripts/restore +++ b/scripts/restore @@ -91,7 +91,9 @@ locale-gen #================================================= # RESTORE POSTFIX ALIASES #================================================= -cp -R ../sources/hooks/conf_regen/98-postfix_emailpoubelle /usr/share/yunohost/hooks/conf_regen/ +ynh_script_progression --message="Restore Postfix aliases..." --time --weight=1 + +ynh_restore_file "/usr/share/yunohost/hooks/conf_regen/98-postfix_mailman" yunohost service regen-conf postfix #create an alias for deleted junk adresses