Skip to content

Commit a204ca4

Browse files
authored
Update nginx.sh
Added comments
1 parent 9f75e12 commit a204ca4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

nginx.sh

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
#!/bin/bash
2+
3+
# [Cleanup] Remove all files in the temporary directory
24
rm -rf /home/container/tmp/*
5+
6+
# [Setup] Load the PHP version from the file
37
PHP_VERSION=$(cat "/home/container/php_version.txt")
48

9+
# [Docker] Starting PHP-FPM with the specified PHP version
510
echo "[Docker] Starting PHP-FPM"
611
php-fpm$PHP_VERSION -c /home/container/php/php.ini --fpm-config /home/container/php/php-fpm.conf --daemonize > /dev/null 2>&1
712

13+
# [Docker] Starting NGINX
814
echo "[Docker] Starting NGINX"
15+
nginx -c /home/container/nginx/nginx.conf -p /home/container
16+
917
echo "[Docker] Services successfully launched"
10-
nginx -c /home/container/nginx/nginx.conf -p /home/container

0 commit comments

Comments
 (0)