From 7c084f31d11f5d2d0af91edd192ee429348b14af Mon Sep 17 00:00:00 2001 From: vladaurosh <47857324+vladaurosh@users.noreply.github.com> Date: Thu, 21 Mar 2024 02:03:57 +0000 Subject: [PATCH] Improve chmod in setup.sh --- dockerfiles/setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dockerfiles/setup.sh b/dockerfiles/setup.sh index 495ef2e7..6fab75a5 100755 --- a/dockerfiles/setup.sh +++ b/dockerfiles/setup.sh @@ -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