20 lines
498 B
Bash
20 lines
498 B
Bash
#!/bin/sh
|
|
|
|
# Starting base services
|
|
echo "[ INFO ] Starting MySQL Server"
|
|
service mysql start
|
|
|
|
echo "[ INFO ] Starting PHP 7.2 Service"
|
|
service php7.2-fpm start
|
|
|
|
# Running friendBook database setup script
|
|
echo "[ INFO ] Setting up friendBook database"
|
|
mysql -u root < /scripts/friendBook.sql
|
|
|
|
# Installing nano to make live changes a little quicker
|
|
echo "[ INFO ] Installing nano editor"
|
|
apt-get update && apt-get install -y nano
|
|
|
|
echo "[ INFO ] Starting nginx"
|
|
nginx -g "daemon off;" # Foreground
|