FEATURE: Autoconfigure defaults
This commit is contained in:
9
buildfiles/auto_config.sh
Normal file
9
buildfiles/auto_config.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
if ![ -f /etc/nginx/sites-enabled/nextcloud_nginx.conf]
|
||||
then
|
||||
cp -v /root/default_configs/nextcloud_nginx.conf /etc/nginx/sites-available/
|
||||
ln -sv /etc/nginx/sites-available/nextcloud_nginx.conf /etc/nginx/sites-enabled/
|
||||
fi
|
||||
|
||||
|
17
buildfiles/start_services.sh
Normal file
17
buildfiles/start_services.sh
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
#Default auto configs
|
||||
/root/auto_config.sh
|
||||
|
||||
#Start Php-fpm
|
||||
/usr/sbin/php-fpm7.2 --nodaemonize --fpm-config /etc/php/7.2/fpm/php-fpm.conf &
|
||||
|
||||
#Start Nginx
|
||||
/usr/sbin/nginx -g 'daemon off; master_process on;' &
|
||||
|
||||
|
||||
|
||||
# Wait for any process to exit
|
||||
wait -n
|
||||
# Exit with status of process that exited first
|
||||
exit $?
|
Reference in New Issue
Block a user