From 1e8cf244bed6276ec14f2bc7c984ca3ceeb1a189 Mon Sep 17 00:00:00 2001 From: pucherot Date: Mon, 1 Feb 2021 22:28:27 +0100 Subject: [PATCH] Update pialert_update.sh --- install/pialert_update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/pialert_update.sh b/install/pialert_update.sh index a43c7e4d..b4f50dc1 100644 --- a/install/pialert_update.sh +++ b/install/pialert_update.sh @@ -140,7 +140,7 @@ update_db() { print_msg "- Checking Parameters table..." TAB=`sqlite3 $PIALERT_HOME/db/pialert.db "SELECT COUNT(*) FROM sqlite_master WHERE type='table' AND name='Parameters' COLLATE NOCASE;"` 2>&1 >> "$LOG" - if [ "TAB" == "0" ] ; then + if [ "$TAB" == "0" ] ; then print_msg " - Checking Parameters table..." sqlite3 $PIALERT_HOME/db/pialert.db "CREATE TABLE Parameters (par_ID STRING (50) PRIMARY KEY NOT NULL COLLATE NOCASE, par_Value STRING (250) );" 2>&1 >> "$LOG" sqlite3 $PIALERT_HOME/db/pialert.db "CREATE INDEX IDX_par_ID ON Parameters (par_ID COLLATE NOCASE);" 2>&1 >> "$LOG"