-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(wordpress): fix ssl always being forced and plugins not installing (
#16)
- Loading branch information
1 parent
90a89c3
commit 3125f1c
Showing
5 changed files
with
34 additions
and
82 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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,18 +1,37 @@ | ||
install-plugins() { | ||
h1 "Linking, installing and activating plugins..." | ||
|
||
PLUGINS_FOUND=$(find "$TMP_PLUGINS_DIR" -type d -mindepth 1 -maxdepth 1) | ||
|
||
link-paths "$TMP_PLUGINS_DIR" "$WP_PLUGINS_DIR" | ||
|
||
if [ -n "$WP_SKIP_PLUGINS" ]; then | ||
h2 "Skipping plugin installation because WP_SKIP_PLUGINS is set." | ||
return | ||
fi | ||
|
||
for path in "$TMP_PLUGINS_DIR"/*/; do | ||
plugin=$(basename "$path") | ||
if [ -z "$PLUGINS_FOUND" ]; then | ||
h2 "No local plugins to install." | ||
else | ||
h2 "Installing local plugins..." | ||
for path in $PLUGINS_FOUND; do | ||
plugin=$(basename "$path") | ||
|
||
wp-activate plugin "$plugin" | ||
done | ||
fi | ||
|
||
PLUGINS_LIST=$(echo "$WP_PLUGINS" | tr ',' '\n') | ||
|
||
if [ -z "$PLUGINS_LIST" ]; then | ||
h2 "No remote plugins to install." | ||
else | ||
h2 "Downloading and installing remote plugins..." | ||
|
||
wp-activate plugin "$plugin" | ||
done | ||
for plugin in $PLUGINS_LIST; do | ||
wp-activate plugin "$plugin" | ||
done | ||
fi | ||
|
||
h2 "Finished installing and activating plugins." | ||
} |
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