diff options
author | DL6ER <dl6er@dl6er.de> | 2022-01-29 23:30:38 +0300 |
---|---|---|
committer | DL6ER <dl6er@dl6er.de> | 2022-01-29 23:30:38 +0300 |
commit | 5cf6359cfb98fe290be9cd505c768c694411f530 (patch) | |
tree | ee7f757571343b8f206641e8f96ac0ed612b897b | |
parent | e80a7731c98d3ee1c03e0fd62621b49a4c621b43 (diff) |
Print details when adding status to adlist tablefix/gravity_status
Signed-off-by: DL6ER <dl6er@dl6er.de>
-rwxr-xr-x | gravity.sh | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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="$?" |