|
@@ -7,25 +7,6 @@
|
|
|
source _common.sh
|
|
source _common.sh
|
|
|
source /usr/share/yunohost/helpers
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
-#=================================================
|
|
|
|
|
-# INITIALIZE AND STORE SETTINGS
|
|
|
|
|
-#=================================================
|
|
|
|
|
-
|
|
|
|
|
-# Get the default network interface
|
|
|
|
|
-main_iface=$(ip route | grep --max-count=1 default | awk '{print $5;}')
|
|
|
|
|
-
|
|
|
|
|
-# Get the dnsmasq user to set log files permissions
|
|
|
|
|
-dnsmasq_user=$(grep DNSMASQ_USER= /etc/init.d/dnsmasq | cut -d'"' -f2)
|
|
|
|
|
-
|
|
|
|
|
-# Find the IP associated to the network interface
|
|
|
|
|
-localipv4=$(ip address | grep "${main_iface}\$" | awk '{print $2;}' | cut -d/ -f1)
|
|
|
|
|
-
|
|
|
|
|
-if [ "$query_logging" -eq 1 ]; then
|
|
|
|
|
- query_logging_str=true
|
|
|
|
|
-else
|
|
|
|
|
- query_logging_str=false
|
|
|
|
|
-fi
|
|
|
|
|
-
|
|
|
|
|
#=================================================
|
|
#=================================================
|
|
|
# ACTIVATE MAINTENANCE MODE
|
|
# ACTIVATE MAINTENANCE MODE
|
|
|
#=================================================
|
|
#=================================================
|