Also flush network_addresses table

Signed-off-by: DL6ER <dl6er@dl6er.de>
pull/2769/head
DL6ER 5 years ago
parent 435a5fb3ad
commit 6996ffa451
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD

@ -43,6 +43,16 @@ flushARP(){
return 1
fi
# Truncate network_addresses table in pihole-FTL.db
# This needs to be done before we can truncate the network table due to
# foreign key contraints
if ! output=$(sqlite3 "${DBFILE}" "DELETE FROM network_addresses" 2>&1); then
echo -e "${OVER} ${CROSS} Failed to truncate network_addresses table"
echo " Database location: ${DBFILE}"
echo " Output: ${output}"
return 1
fi
# Truncate network table in pihole-FTL.db
if ! output=$(sqlite3 "${DBFILE}" "DELETE FROM network" 2>&1); then
echo -e "${OVER} ${CROSS} Failed to truncate network table"

Loading…
Cancel
Save