-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
24 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eu | ||
|
||
# Activate the plugin. | ||
cd "/app" | ||
echo "Activating plugin..." | ||
if ! wp plugin is-active daggerhart-openid-connect-generic 2>/dev/null; then | ||
wp plugin activate daggerhart-openid-connect-generic --quiet | ||
fi | ||
|
||
echo "Done!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eux | ||
set -eu | ||
|
||
# true is shell command and always return 0 | ||
# false always return 1 | ||
|
@@ -17,17 +17,21 @@ sudo sh -c "echo 'precedence ::ffff:0:0/96 100' >> /etc/gai.conf" | |
|
||
# Install Composer dependencies. | ||
cd "${PLUGIN_DIR}" | ||
COMPOSER_ALLOW_XDEBUG=0 COMPOSER_MEMORY_LIMIT=-1 composer install | ||
echo "Installing Composer dependencies..." | ||
COMPOSER_NO_INTERACTION=1 COMPOSER_ALLOW_XDEBUG=0 COMPOSER_MEMORY_LIMIT=-1 composer install --no-progress --quiet | ||
|
||
# Install NPM dependencies. | ||
cd "${PLUGIN_DIR}" | ||
if [ ! -d "node_modules" ]; then | ||
echo "Installing NPM dependencies..." | ||
npm ci | ||
fi | ||
|
||
# Setup the WordPress environment. | ||
cd "/app" | ||
echo "Setting up WordPress at $SITE_HOST" | ||
wp core install --url="$SITE_HOST" --title="OpenID Connect Development" --admin_user="admin" --admin_email="[email protected]" --admin_password="password" --skip-email | ||
if ! wp core is-installed 2>/dev/null; then | ||
echo "Setting up WordPress at $SITE_HOST" | ||
wp core install --url="$SITE_HOST" --title="OpenID Connect Development" --admin_user="admin" --admin_email="[email protected]" --admin_password="password" --skip-email --quiet | ||
fi | ||
|
||
echo "Done!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters