From 462c6613fc07ec4141e7879ecd32f733c9657aba Mon Sep 17 00:00:00 2001 From: pucherot Date: Wed, 27 Jan 2021 17:02:07 +0100 Subject: [PATCH] Update pialert_update.sh bugfix #55 --- install/pialert_update.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install/pialert_update.sh b/install/pialert_update.sh index d1dcb332..72c3e67c 100644 --- a/install/pialert_update.sh +++ b/install/pialert_update.sh @@ -140,6 +140,10 @@ update_config() { # # ------------------------------------------------------------------------------ update_db() { + print_msg "- Updating DB permissions..." + sudo chgrp -R www-data $PIALERT_HOME/db 2>&1 >> "$LOG" + chmod -R 770 $PIALERT_HOME/db 2>&1 >> "$LOG" + return }