From 56bcf0bbafdb5964a85cac92d1ec73e24386915b Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 15 Jun 2020 20:10:26 +0200 Subject: [PATCH] Fix removal of custom regen-conf hook --- scripts/remove | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/remove b/scripts/remove index bca4f75..fe1f5f9 100644 --- a/scripts/remove +++ b/scripts/remove @@ -71,11 +71,8 @@ ynh_remove_fpm_config if [ $with_sftp -eq 1 ] then ynh_script_progression --message="Removing the custom ssh config..." - - sed -i "/##-> ${app}/,/##<- ${app}/d" /etc/ssh/sshd_config - ynh_systemd_action --service_name=ssh --action=reload - # Remove regen-conf hook ynh_secure_remove --file="/usr/share/yunohost/hooks/conf_regen/90-ssh_$app" + yunohost tools regen-conf ssh fi #=================================================