1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/my_webapp_ynh.git synced 2024-09-03 19:46:26 +02:00

Fix removal of custom regen-conf hook

This commit is contained in:
Alexandre Aubin 2020-06-15 20:10:26 +02:00
parent 7c77c31e30
commit 56bcf0bbaf

View file

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