|
@ -73,6 +73,9 @@ case $ROLE in |
|
|
chmod 644 /etc/mysql/mysql.conf.d/mysqld.cnf |
|
|
chmod 644 /etc/mysql/mysql.conf.d/mysqld.cnf |
|
|
mysqld --user=root |
|
|
mysqld --user=root |
|
|
mysql -e "create database $MYSQL_DATABASE ; GRANT ALL PRIVILEGES ON $MYSQL_DATABASE.* TO $MYSQL_USER@localhost IDENTIFIED BY '$MYSQL_PASSWORD'" |
|
|
mysql -e "create database $MYSQL_DATABASE ; GRANT ALL PRIVILEGES ON $MYSQL_DATABASE.* TO $MYSQL_USER@localhost IDENTIFIED BY '$MYSQL_PASSWORD'" |
|
|
|
|
|
mysql exampledb -e "UPDATE wp_options SET option_name = 'siteurl', option_value = 'http://localhost:$SERVICEPORT', autoload = 'yes' WHERE option_name = 'siteurl' " |
|
|
|
|
|
|
|
|
|
|
|
mysql exampledb -e "UPDATE wp_options SET option_name = 'home', option_value = 'http://localhost:$SERVICEPORT', autoload = 'yes' WHERE option_name = 'home' " |
|
|
tail -f /dev/null |
|
|
tail -f /dev/null |
|
|
#done |
|
|
#done |
|
|
;; |
|
|
;; |
|
|