From fba6f8e4955b951ad7b2b74a699440f76761e596 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 17 Jun 2020 15:55:39 +0200 Subject: [PATCH] This is not how the regen conf works --- scripts/actions/sftp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/scripts/actions/sftp b/scripts/actions/sftp index 2b13b82..19981f6 100755 --- a/scripts/actions/sftp +++ b/scripts/actions/sftp @@ -43,27 +43,19 @@ then ynh_script_progression --message="Configuring ssh to add a SFTP access..." --weight=3 cp -R conf/ssh_regenconf_hook /usr/share/yunohost/hooks/conf_regen/90-ssh_$app - ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file=/usr/share/yunohost/hooks/conf_regen/90-ssh_$app - yunohost tools regen-conf ssh else ynh_script_progression --message="Removing the custom ssh config for the SFTP access..." --weight=3 - sed -i "/##-> ${app}/,/##<- ${app}/d" /etc/ssh/sshd_config # Remove regen-conf hook ynh_secure_remove --file="/usr/share/yunohost/hooks/conf_regen/90-ssh_$app" fi +yunohost tools regen-conf ssh + # Update the config of the app ynh_app_setting_set --app=$app --key=with_sftp --value=$with_sftp -#================================================= -# RELOAD SSH -#================================================= -ynh_script_progression --message="Reloading SSH..." - -ynh_systemd_action --service_name=ssh --action=reload - #================================================= # END OF SCRIPT #=================================================