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 #=================================================