1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/emailpoubelle_ynh.git synced 2024-09-03 18:26:29 +02:00
This commit is contained in:
Krakinou 2019-05-19 18:41:09 +02:00
parent 15667e5dfc
commit 6a38f0239b

View file

@ -67,17 +67,18 @@ ynh_remove_nginx_config
# REMOVE THE CRON FILE
#=================================================
# Remove a cron file
ynh_secure_remove --file="/etc/cron.d/$app"
sleep 1s
#=================================================
#removing aliases
#=================================================
ynh_replace_string "devnull:/dev/null" "" /etc/aliases
sleep 1s
newaliases
sleep 1s
#=================================================
# Remove hook for postfix conf
#=================================================
ynh_secure_remove "/usr/share/yunohost/hooks/conf_regen/98-postfix_emailpoubelle"
#=================================================
@ -85,11 +86,6 @@ ynh_secure_remove "/usr/share/yunohost/hooks/conf_regen/98-postfix_emailpoubelle
#=================================================
# REMOVE DEDICATED USER
#=================================================
ynh_print_info --message="Removing the dedicated system user"
# Delete a system user
ynh_system_user_delete --username=$app
yunohost service regen-conf postfix
service nginx reload