mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-10-23 01:26:20 -04:00
Update pialert_update.sh
This commit is contained in:
1 parent
f8014f1bf4
commit
228078c07b
1 file changed
+3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user