mirror of
https://github.com/YunoHost-Apps/yunorunner_ynh.git
synced 2024-09-03 20:36:13 +02:00
Fix DHCP communication
This commit is contained in:
parent
338438d8e5
commit
4f1b24ae4f
4 changed files with 30 additions and 0 deletions
5
conf/post_iptable_rules
Normal file
5
conf/post_iptable_rules
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
iptables -t filter -A INPUT -i lxdbr0 -p udp -d 255.255.255.255 --dport 67 -j ACCEPT
|
|
@ -188,6 +188,15 @@ ynh_script_progression --message="Reloading NGINX web server..."
|
|||
|
||||
ynh_systemd_action --service_name=nginx --action=reload
|
||||
|
||||
#=================================================
|
||||
# ADD FIREWALL RULES
|
||||
#=================================================
|
||||
ynh_script_progression --message="Adding firewall rules..."
|
||||
|
||||
mkdir -p "/etc/yunohost/hooks.d/post_iptable_rules"
|
||||
ynh_add_config --template="post_iptable_rules" --destination="/etc/yunohost/hooks.d/post_iptable_rules/50-${app}"
|
||||
yunohost firewall reload
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
#=================================================
|
||||
|
|
|
@ -85,6 +85,13 @@ ynh_script_progression --message="Removing the dedicated system user..."
|
|||
# Delete a system user
|
||||
ynh_system_user_delete --username=$app
|
||||
|
||||
#=================================================
|
||||
# REMOVE FIREWALL RULES
|
||||
#=================================================
|
||||
ynh_script_progression --message="Removing firewall rules..."
|
||||
|
||||
yunohost firewall reload
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
#=================================================
|
||||
|
|
|
@ -130,6 +130,15 @@ ynh_script_progression --message="Reloading NGINX web server..."
|
|||
|
||||
ynh_systemd_action --service_name=nginx --action=reload
|
||||
|
||||
#=================================================
|
||||
# ADD FIREWALL RULES
|
||||
#=================================================
|
||||
ynh_script_progression --message="Adding firewall rules..."
|
||||
|
||||
mkdir -p "/etc/yunohost/hooks.d/post_iptable_rules"
|
||||
ynh_add_config --template="post_iptable_rules" --destination="/etc/yunohost/hooks.d/post_iptable_rules/50-${app}"
|
||||
yunohost firewall reload
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue