PERMISSIONS, MQTT, Maintenance work⤵

This commit is contained in:
Jokob-sk
2023-10-18 22:35:36 +11:00
parent 9dd456bd2c
commit 1a3cf49c00
5 changed files with 34 additions and 53 deletions

View File

@@ -30,7 +30,12 @@ echo "[INSTALL] Run setup scripts"
"$INSTALL_DIR/pialert/install/install_dependencies.sh"
"$INSTALL_DIR/pialert/install/install_python.sh"
# Chaneg port number if set
# # executes a new shell session with the user specified in the USER variable.
# if [ -n "$USER" ]; then
# exec su - "${USER}"
# fi
# Change port number if set
if [ -n "${PORT}" ]; then
sed -ie 's/listen 20211/listen '${PORT}'/g' /etc/nginx/sites-available/default
fi
@@ -77,6 +82,7 @@ chmod -R a+rwx $INSTALL_DIR
chmod -R a+rwx /var/www/html
chmod -R a+rw $INSTALL_DIR/pialert/front/log
chmod -R a+rw $INSTALL_DIR/pialert/config
sudo chgrp -R www-data $INSTALL_DIR/pialert
FILEDB=$INSTALL_DIR/pialert/db/pialert.db