We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fd497b commit 35abac9Copy full SHA for 35abac9
start.sh
@@ -1,13 +1,13 @@
1
#!/bin/bash
2
if [ ! -f /usr/share/nginx/www/wp-config.php ]; then
3
#mysql has to be started this way as it doesn't work to call from /etc/init.d
4
- /usr/bin/mysqld_safe &
+ /usr/bin/mysqld_safe &
5
sleep 10s
6
# Here we generate random passwords (thank you pwgen!). The first two are for mysql users, the last batch for random keys in wp-config.php
7
WORDPRESS_DB="wordpress"
8
MYSQL_PASSWORD=`pwgen -c -n -1 12`
9
WORDPRESS_PASSWORD=`pwgen -c -n -1 12`
10
- #This is so the passwords show up in logs.
+ #This is so the passwords show up in logs.
11
echo mysql root password: $MYSQL_PASSWORD
12
echo wordpress password: $WORDPRESS_PASSWORD
13
echo $MYSQL_PASSWORD > /mysql-root-pw.txt
0 commit comments