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

handle hook backup/restore

This commit is contained in:
Krakinou 2019-05-21 13:49:14 +02:00
parent 8194362192
commit e1a1f19b83
2 changed files with 9 additions and 1 deletions

View file

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

View file

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