Uh for some reason we need to return *0* explicitly

This commit is contained in:
Alexandre Aubin 2018-12-03 16:56:28 +00:00
parent 447372d07c
commit 4f05cd5b2b

View file

@ -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"