Skip to content

Commit 21a09e4

Browse files
authored
fix perm
1 parent d32cf80 commit 21a09e4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nginx/entrypoint-nginx.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ else
9090
echo -e "${COLOR_GREEN}${COLOR_BOLD}NPP-NGINX:${COLOR_RESET} User ${COLOR_LIGHT_CYAN}${NGINX_WEB_USER}${COLOR_RESET} is already in group ${COLOR_LIGHT_CYAN}${NPP_USER}${COLOR_RESET} Skipping.."
9191
fi
9292

93+
# Fix permissions for consistency
94+
chown -R root:root /etc/nginx &&
95+
echo -e "${COLOR_GREEN}${COLOR_BOLD}NPP-NGINX:${COLOR_RESET} Permissions fixed successfully!" ||
96+
echo -e "${COLOR_RED}${COLOR_BOLD}NPP-NGINX:${COLOR_RESET} Failed to fix permissions!"
97+
9398
sleep 3
9499

95100
# Congratulatory Header

0 commit comments

Comments
 (0)