Skip to content
Snippets Groups Projects
Commit c0276966 authored by Emmanuel Ormancey's avatar Emmanuel Ormancey
Browse files

sss

parent 91c9186f
No related branches found
No related tags found
No related merge requests found
#!/bin/bash #!/bin/bash
set -x #set -x
set -eo pipefail #set -eo pipefail
# ------- EO 03.04.2019 ------- # ------- EO 03.04.2019 -------
if ! $(wp core is-installed); then if ! $(wp core is-installed); then
echo "Wordpress download and install" echo "Wordpress download and install"
if $(/opt/app-root/bin/wp core download); then /opt/app-root/bin/wp core download
echo "Wordpress package downloaded and installed."
fi
# Verify Checksums # Verify Checksums
/opt/app-root/bin/wp core verify-checksums /opt/app-root/bin/wp core verify-checksums
...@@ -23,11 +21,9 @@ if ! $(wp core is-installed); then ...@@ -23,11 +21,9 @@ if ! $(wp core is-installed); then
echo "Wordpress configuration" echo "Wordpress configuration"
# --skip-check avoids the need for mysql binary and mysql lcoal install # --skip-check avoids the need for mysql binary and mysql lcoal install
if ! $(/opt/app-root/bin/wp config list); then /opt/app-root/bin/wp config create --dbname=$MYSQL_DATABASE --dbhost=$MYSQL_HOST --dbprefix=$MYSQL_TABLE_PREFIX --dbuser=$MYSQL_USER --dbpass=$MYSQL_PASSWORD --skip-check
/opt/app-root/bin/wp config create --dbname=$MYSQL_DATABASE --dbhost=$MYSQL_HOST --dbprefix=$MYSQL_TABLE_PREFIX --dbuser=$MYSQL_USER --dbpass=$MYSQL_PASSWORD --skip-check # Enforse SSL
# Enforse SSL /opt/app-root/bin/wp config set FORCE_SSL_ADMIN true --raw
/opt/app-root/bin/wp config set FORCE_SSL_ADMIN true --raw
fi
echo "Wordpress site setup" echo "Wordpress site setup"
# Create Wordpress instance and admin account # Create Wordpress instance and admin account
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment