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:
parent
7c77c31e30
commit
56bcf0bbaf
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue