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 #=================================================