1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/timemachine_ynh.git synced 2024-09-03 20:26:33 +02:00

Allow firewall

This commit is contained in:
Éric Gaspar 2024-01-14 16:34:47 +01:00
parent cbbd462d5c
commit b7b70d7b12
2 changed files with 14 additions and 0 deletions

View file

@ -20,6 +20,13 @@ ynh_restore_file --origin_path="$data_dir" --not_mandatory
chown -R $app: "$data_dir" 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 # RESTORE VARIOUS FILES
#================================================= #=================================================

View file

@ -28,6 +28,13 @@ ynh_add_config --template="avahi-samba.service" --destination="/etc/avahi/servic
samba_sysadmin_update samba_sysadmin_update
samba_sysadmin_add 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 # GENERIC FINALIZATION
#================================================= #=================================================