Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pi-hole/pi-hole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDL6ER <dl6er@dl6er.de>2022-01-29 23:30:38 +0300
committerDL6ER <dl6er@dl6er.de>2022-01-29 23:30:38 +0300
commit5cf6359cfb98fe290be9cd505c768c694411f530 (patch)
treeee7f757571343b8f206641e8f96ac0ed612b897b
parente80a7731c98d3ee1c03e0fd62621b49a4c621b43 (diff)
Print details when adding status to adlist tablefix/gravity_status
Signed-off-by: DL6ER <dl6er@dl6er.de>
-rwxr-xr-xgravity.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/gravity.sh b/gravity.sh
index 2f24fbdb..23d5cb5b 100755
--- a/gravity.sh
+++ b/gravity.sh
@@ -266,9 +266,12 @@ database_adlist_number() {
database_adlist_status() {
# Only try to set the status when this field exists in the gravity database
if ! gravity_column_exists "adlist" "status"; then
+ echo "Gravity status column is not found!"
return;
fi
+ echo "Gravity status column found and set to ${2} (ID ${1})"
+
output=$( { printf ".timeout 30000\\nUPDATE adlist SET status = %i WHERE id = %i;\\n" "${2}" "${1}" | sqlite3 "${gravityDBfile}"; } 2>&1 )
status="$?"