We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f75e12 commit a204ca4Copy full SHA for a204ca4
nginx.sh
@@ -1,10 +1,17 @@
1
#!/bin/bash
2
+
3
+# [Cleanup] Remove all files in the temporary directory
4
rm -rf /home/container/tmp/*
5
6
+# [Setup] Load the PHP version from the file
7
PHP_VERSION=$(cat "/home/container/php_version.txt")
8
9
+# [Docker] Starting PHP-FPM with the specified PHP version
10
echo "[Docker] Starting PHP-FPM"
11
php-fpm$PHP_VERSION -c /home/container/php/php.ini --fpm-config /home/container/php/php-fpm.conf --daemonize > /dev/null 2>&1
12
13
+# [Docker] Starting NGINX
14
echo "[Docker] Starting NGINX"
15
+nginx -c /home/container/nginx/nginx.conf -p /home/container
16
17
echo "[Docker] Services successfully launched"
-nginx -c /home/container/nginx/nginx.conf -p /home/container
0 commit comments