Merge pull request #600 from vladaurosh/main

Improve chmod in setup.sh - thanks to @vladaurosh 🙏
This commit is contained in:
jokob-sk
2024-03-21 22:18:24 +00:00
committed by GitHub

View File

@@ -69,7 +69,7 @@ touch "${INSTALL_DIR}"/pialert/front/log/{execution_queue.log,pialert_front.log,
echo "[INSTALL] Fixing permissions after copied starter config & DB"
chown -R nginx:www-data "${INSTALL_DIR}"/pialert/{config,front/log,db}
chmod 750 "${INSTALL_DIR}"/pialert/{config,front/log,db}
chmod 640 "${INSTALL_DIR}"/pialert/{config,front/log,db}/*
find "${INSTALL_DIR}"/pialert/{config,front/log,db} -type f -exec chmod 640 {} \;
# Check if buildtimestamp.txt doesn't exist
if [ ! -f "${INSTALL_DIR}/pialert/front/buildtimestamp.txt" ]; then