Testing fully automated startup
This commit is contained in:
7
resources/startup.sh
Normal file
7
resources/startup.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "[ INFO ] Starting nginx"
|
||||
nginx -g "daemon off;"
|
||||
|
||||
echo "[ INFO ] Starting PHP-FPM"
|
||||
service php7.0-fpm start
|
||||
@@ -1,14 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
function start_services() {
|
||||
echo "[ INFO ] Starting nginx"
|
||||
bash -c 'php5-fpm -D; nginx -g "daemon off;"'
|
||||
}
|
||||
|
||||
function main() {
|
||||
start_services
|
||||
}
|
||||
|
||||
main "$@"
|
||||
Reference in New Issue
Block a user