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:
parent
cbbd462d5c
commit
b7b70d7b12
2 changed files with 14 additions and 0 deletions
|
@ -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
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -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
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue