Skip to content

Commit 2c1001e

Browse files
authored
own with root
1 parent 21a09e4 commit 2c1001e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

wordpress/entrypoint-wp.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,11 @@ fi
8585
echo -e "${COLOR_GREEN}${COLOR_BOLD}NPP-WP:${COLOR_RESET} The Nginx Cache Path: ${COLOR_LIGHT_CYAN}${NPP_NGINX_CACHE_PATH}${COLOR_RESET} has been successfully mounted to ${COLOR_LIGHT_CYAN}${MOUNT_DIR}${COLOR_RESET} with ${COLOR_CYAN}UID:${NPP_UID}${COLOR_RESET} and ${COLOR_CYAN}GID:${NPP_GID}${COLOR_RESET}."
8686

8787
# Fix permissions for consistency
88-
chown -R "${NPP_USER}":"${NPP_USER}" /etc/nginx &&
89-
chown -R root:root /usr/local/etc/php-fpm.d &&
90-
chown -R root:root /usr/local/etc/php/conf.d &&
91-
echo -e "${COLOR_GREEN}${COLOR_BOLD}NPP-WP:${COLOR_RESET} Permissions fixed successfully!" ||
88+
chown -R root:root \
89+
/etc/nginx \
90+
/usr/local/etc/php-fpm.d \
91+
/usr/local/etc/php/conf.d &&
92+
echo -e "${COLOR_GREEN}${COLOR_BOLD}NPP-WP:${COLOR_RESET} Permissions fixed successfully!" ||
9293
echo -e "${COLOR_RED}${COLOR_BOLD}NPP-WP:${COLOR_RESET} Failed to fix permissions!"
9394

9495
# Wait for the 'wordpress-db' to be ready

0 commit comments

Comments
 (0)