mirror of
https://github.com/YunoHost-Apps/hotspot_ynh.git
synced 2024-09-03 19:25:53 +02:00
Fix an nginx conf typo
This commit is contained in:
parent
87450f373e
commit
266a68bcea
3 changed files with 52 additions and 47 deletions
|
@ -141,6 +141,7 @@ set_dhcpd() {
|
||||||
sed "s|<TPL:WIFI_DEVICE>|${ynh_wifi_device}|g" -i /etc/dnsmasq.d/dhcpdv4.conf
|
sed "s|<TPL:WIFI_DEVICE>|${ynh_wifi_device}|g" -i /etc/dnsmasq.d/dhcpdv4.conf
|
||||||
sed "s|<TPL:IP4_NAT_PREFIX>|${ynh_ip4_nat_prefix}|g" -i /etc/dnsmasq.d/dhcpdv4.conf
|
sed "s|<TPL:IP4_NAT_PREFIX>|${ynh_ip4_nat_prefix}|g" -i /etc/dnsmasq.d/dhcpdv4.conf
|
||||||
|
|
||||||
|
service bind9 stop &> /dev/null
|
||||||
service dnsmasq restart
|
service dnsmasq restart
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -235,6 +236,8 @@ moulinette_set() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [ "$1" != restart ]; then
|
||||||
|
|
||||||
# Restart php5-fpm at the first start (it needs to be restarted after the slapd start)
|
# Restart php5-fpm at the first start (it needs to be restarted after the slapd start)
|
||||||
if [ ! -e /tmp/.ynh-hotspot-boot ]; then
|
if [ ! -e /tmp/.ynh-hotspot-boot ]; then
|
||||||
touch /tmp/.ynh-hotspot-boot
|
touch /tmp/.ynh-hotspot-boot
|
||||||
|
@ -286,6 +289,8 @@ if [ ! -z "${vpnclient_ip6_addr}" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
# Script
|
# Script
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
|
|
@ -55,7 +55,7 @@ if [ ! $? -eq 0 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Install packages
|
# Install packages
|
||||||
packages='php5-fpm sipcalc hostapd iptables wireless-tools'
|
packages='php5-fpm sipcalc hostapd iptables wireless-tools dnsmasq'
|
||||||
|
|
||||||
# Packaged USB Wireless Device firmwares
|
# Packaged USB Wireless Device firmwares
|
||||||
# Based on https://wiki.debian.org/WiFi#USB_Devices
|
# Based on https://wiki.debian.org/WiFi#USB_Devices
|
||||||
|
|
Loading…
Add table
Reference in a new issue