From 228078c07b21f6ed4587434bf28c52d8059daca0 Mon Sep 17 00:00:00 2001 From: pucherot Date: Tue, 2 Feb 2021 10:14:38 +0100 Subject: [PATCH] Update pialert_update.sh --- install/pialert_update.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install/pialert_update.sh b/install/pialert_update.sh index 69fc8fcb..eed43aff 100644 --- a/install/pialert_update.sh +++ b/install/pialert_update.sh @@ -139,6 +139,9 @@ update_db() { sudo chgrp -R www-data $PIALERT_HOME/db 2>&1 >> "$LOG" chmod -R 770 $PIALERT_HOME/db 2>&1 >> "$LOG" + print_msg "- Installing sqlite3..." + sudo apt-get install sqlite3 -y 2>&1 >> "$LOG" + 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