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

Update run

parent 8c93b0c4
Branches
Tags
No related merge requests found
......@@ -131,17 +131,17 @@ Alias /webdav/ /opt/app-root/src/
fi
# ------- EO 03.04.2019 -------
#if ! $(wp core is-installed); then
if ! $(wp core is-installed); then
# Create Wordpress instance and admin account
# /opt/app-root/bin/wp core install --url=https://$APPLICATION_NAME.web.cern.ch --title=$APPLICATION_NAME --admin_user=admin --admin_email=$ADMIN_EMAIL
/opt/app-root/bin/wp core install --url=https://$APPLICATION_NAME.web.cern.ch --title=$APPLICATION_NAME --admin_user=admin --admin_email=$ADMIN_EMAIL
# Create Admin Users and enable Plugin
#/opt/app-root/bin/wp user create admin $ADMIN_EMAIL --role=administrator
# Enable english language
# /opt/app-root/bin/wp language core install en_US
# /opt/app-root/bin/wp language core activate en_US
/opt/app-root/bin/wp language core install en_US
/opt/app-root/bin/wp language core activate en_US
# Enable CERN SSO plugin which maps email attribute to WP internal DB
# /opt/app-root/bin/wp plugin activate cern-sso-authentication
#fi
/opt/app-root/bin/wp plugin activate cern-sso-authentication
fi
# Execute the original run script, replacing this script as current process.
exec /usr/libexec/s2i/run
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment