Resources attached to the Road To DevOps tutorial
https://blog.noobtoroot.xyz/road-to-devops/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
357 B
11 lines
357 B
#!/bin/bash |
|
|
|
if [ -f /run/secrets/mysql-secret ] ; then |
|
tail -n 1 /run/secrets/mysql-secret |
|
export MYSQL_PASSWORD="$(tail -n 1 /run/secrets/mysql-secret)" |
|
fi |
|
|
|
rm -f /run/apache2/apache2.pid |
|
echo "PassEnv MYSQL_USER MYSQL_PASSWORD MYSQL_DATABASE MYSQL_HOST" > /etc/apache2/conf-available/env.conf |
|
a2enconf env |
|
exec /usr/sbin/apache2ctl -D FOREGROUND
|
|
|