From 4f05cd5b2b2f12fddf67712c3c263c89fbf4678a Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 3 Dec 2018 16:56:28 +0000 Subject: [PATCH] Uh for some reason we need to return *0* explicitly --- data/hooks/conf_regen/03-ssh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/hooks/conf_regen/03-ssh b/data/hooks/conf_regen/03-ssh index dafa4327e..34cb441b4 100755 --- a/data/hooks/conf_regen/03-ssh +++ b/data/hooks/conf_regen/03-ssh @@ -9,7 +9,7 @@ do_pre_regen() { # If the (legacy) 'from_script' flag is here, # we won't touch anything in the ssh config. - [[ ! -f /etc/yunohost/from_script ]] || return + [[ ! -f /etc/yunohost/from_script ]] || return 0 cd /usr/share/yunohost/templates/ssh @@ -39,10 +39,10 @@ do_post_regen() { # If the (legacy) 'from_script' flag is here, # we won't touch anything in the ssh config. - [[ ! -f /etc/yunohost/from_script ]] || return + [[ ! -f /etc/yunohost/from_script ]] || return 0 # If no file changed, there's nothing to do - [[ -n "$regen_conf_files" ]] || return + [[ -n "$regen_conf_files" ]] || return 0 # Enforce permissions for /etc/ssh/sshd_config chown root:root "/etc/ssh/sshd_config"