Merge branch 'development' into new/RemoveDefaultBlocklists
This commit is contained in:
commit
e17e69604c
|
@ -700,7 +700,7 @@ setStaticIPv4() {
|
||||||
IFCFG_FILE=/etc/sysconfig/network-scripts/ifcfg-${PIHOLE_INTERFACE}
|
IFCFG_FILE=/etc/sysconfig/network-scripts/ifcfg-${PIHOLE_INTERFACE}
|
||||||
IPADDR=$(echo "${IPV4_ADDRESS}" | cut -f1 -d/)
|
IPADDR=$(echo "${IPV4_ADDRESS}" | cut -f1 -d/)
|
||||||
# check if the desired IP is already set
|
# check if the desired IP is already set
|
||||||
if grep -q "${IPADDR}" "${IFCFG_FILE}"; then
|
if grep -Eq "${IPADDR}(\\b|\\/)" "${IFCFG_FILE}"; then
|
||||||
echo -e " ${INFO} Static IP already configured"
|
echo -e " ${INFO} Static IP already configured"
|
||||||
# Otherwise,
|
# Otherwise,
|
||||||
else
|
else
|
||||||
|
@ -2149,23 +2149,6 @@ main() {
|
||||||
welcomeDialogs
|
welcomeDialogs
|
||||||
# Create directory for Pi-hole storage
|
# Create directory for Pi-hole storage
|
||||||
mkdir -p /etc/pihole/
|
mkdir -p /etc/pihole/
|
||||||
|
|
||||||
#Do we need to stop pihole-FTL or dnsmasq(if coming from an old install)?
|
|
||||||
if [[ $(which pihole-FTL 2>/dev/null) ]]; then
|
|
||||||
if pihole-FTL --resolver > /dev/null; then
|
|
||||||
stop_service pihole-FTL
|
|
||||||
else
|
|
||||||
stop_service dnsmasq
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
if [[ $(which dnsmasq 2>/dev/null) ]]; then
|
|
||||||
stop_service dnsmasq
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ "${INSTALL_WEB_SERVER}" == true ]]; then
|
|
||||||
stop_service lighttpd
|
|
||||||
fi
|
|
||||||
# Determine available interfaces
|
# Determine available interfaces
|
||||||
get_available_interfaces
|
get_available_interfaces
|
||||||
# Find interfaces and let the user choose one
|
# Find interfaces and let the user choose one
|
||||||
|
|
Loading…
Reference in New Issue