mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-10-24 10:00:35 -04:00
Improve chmod in setup.sh
This commit is contained in:
1 parent
9b1cf13924
commit
7c084f31d1
1 file changed
+2
-2
@@ -68,8 +68,8 @@ 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 d -exec chmod 750 {} \;
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user