mirror of
https://github.com/YunoHost-Apps/hotspot_ynh.git
synced 2024-09-03 19:25:53 +02:00
install: using ynh_add_systemd_config
This commit is contained in:
parent
4637e28176
commit
d90f5ff323
1 changed files with 12 additions and 1 deletions
|
@ -263,7 +263,13 @@ sed "s|<TPL:NGINX_LOCATION>|${path_url}|g" -i /var/www/wifiadmin/config.php
|
||||||
|
|
||||||
# Copy init script
|
# Copy init script
|
||||||
install -o root -g root -m 0755 ../conf/$service_name /usr/local/bin/
|
install -o root -g root -m 0755 ../conf/$service_name /usr/local/bin/
|
||||||
install -o root -g root -m 0644 ../conf/$service_name.service /etc/systemd/system/
|
|
||||||
|
#=================================================
|
||||||
|
# SETUP SYSTEMD
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
# Create a dedicated systemd config
|
||||||
|
ynh_add_systemd_config $service_name
|
||||||
|
|
||||||
# Update firewall for DHCP
|
# Update firewall for DHCP
|
||||||
yunohost firewall allow --no-upnp --ipv6 UDP 547
|
yunohost firewall allow --no-upnp --ipv6 UDP 547
|
||||||
|
@ -276,6 +282,11 @@ systemctl disable hostapd
|
||||||
systemctl stop hostapd
|
systemctl stop hostapd
|
||||||
systemctl enable php5-fpm
|
systemctl enable php5-fpm
|
||||||
systemctl restart php5-fpm
|
systemctl restart php5-fpm
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# RELOAD NGINX
|
||||||
|
#=================================================
|
||||||
|
|
||||||
systemctl reload nginx
|
systemctl reload nginx
|
||||||
|
|
||||||
# Remove IPv6 address set if there is a VPN installed
|
# Remove IPv6 address set if there is a VPN installed
|
||||||
|
|
Loading…
Add table
Reference in a new issue