From b7b70d7b125d0c17ceac8f6798a1a351495c5b69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 14 Jan 2024 16:34:47 +0100 Subject: [PATCH] Allow firewall --- scripts/restore | 7 +++++++ scripts/upgrade | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/scripts/restore b/scripts/restore index 9fed8d5..7713018 100755 --- a/scripts/restore +++ b/scripts/restore @@ -20,6 +20,13 @@ ynh_restore_file --origin_path="$data_dir" --not_mandatory chown -R $app: "$data_dir" +#================================================= +# OPEN PORT 445 +#================================================= +ynh_script_progression --message="Configuring firewall..." --weight=1 + +ynh_exec_warn_less yunohost firewall allow --no-upnp TCP 445 # Allow SMB access + #================================================= # RESTORE VARIOUS FILES #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index b74df1e..56e6101 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -28,6 +28,13 @@ ynh_add_config --template="avahi-samba.service" --destination="/etc/avahi/servic samba_sysadmin_update samba_sysadmin_add +#================================================= +# OPEN PORT 445 +#================================================= +ynh_script_progression --message="Configuring firewall..." --weight=1 + +ynh_exec_warn_less yunohost firewall allow --no-upnp TCP 445 # Allow SMB access + #================================================= # GENERIC FINALIZATION #=================================================