Browse Source

Fix removal of custom regen-conf hook

pull/46/merge
Alexandre Aubin 6 years ago
parent
commit
56bcf0bbaf
  1. 5
      scripts/remove

5
scripts/remove

@ -71,11 +71,8 @@ ynh_remove_fpm_config
if [ $with_sftp -eq 1 ] if [ $with_sftp -eq 1 ]
then then
ynh_script_progression --message="Removing the custom ssh config..." 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" ynh_secure_remove --file="/usr/share/yunohost/hooks/conf_regen/90-ssh_$app"
yunohost tools regen-conf ssh
fi fi
#================================================= #=================================================

Loading…
Cancel
Save