Skip to content

Commit

Permalink
Minor bug fixes (testing on remote machines)
Browse files Browse the repository at this point in the history
  • Loading branch information
wetnun committed Dec 10, 2021
1 parent 70b9fd7 commit b1a1c3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pihole-cloudsync
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ fi
export_tables () {
$SUDO sqlite3 $gravity_db ".dump --preserve-rowids $DB_TABLES" > $DB_DUMP_FILE
for t in $DB_TABLES; do
sed -i "/BEGIN TRAN/a DROP TABLE IF EXISTS $t;" $DB_DUMP_FILE
sed -i "/BEGIN TRAN/a DROP TABLE IF EXISTS '$t';" $DB_DUMP_FILE
done
}

import_tables () {
$SUDO sqlite3 $gravity_db ".read '|$DB_DUMP_FILE'"
$SUDO sqlite3 $gravity_db ".read $DB_DUMP_FILE"
}

# FUNCTIONS
Expand Down

0 comments on commit b1a1c3e

Please sign in to comment.