use an excluded extension for ifcfg backup

This commit is contained in:
bcambl 2016-10-16 13:28:14 -06:00
parent 123b16991b
commit ee114b3075
1 changed files with 1 additions and 1 deletions

View File

@ -360,7 +360,7 @@ setStaticIPv4() {
IPADDR=$(echo "${IPv4_address}" | cut -f1 -d/)
CIDR=$(echo "${IPv4_address}" | cut -f2 -d/)
# Backup existing interface configuration:
cp "${IFCFG_FILE}" "${IFCFG_FILE}".backup-"$(date +%Y-%m-%d-%H%M%S)"
cp "${IFCFG_FILE}" "${IFCFG_FILE}".pihole.orig"
# Build Interface configuration file:
{
echo "# Configured via Pi-Hole installer"