Skip to content

Commit f8fc39e

Browse files
committed
Don't symlink wpcloud-sso in Jetpack Docker
1 parent 6403bdb commit f8fc39e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/docker/bin/run.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,15 @@ if [ "$COMPOSE_PROJECT_NAME" == "jetpack_dev" ] ; then
109109
fi
110110
fi
111111

112+
PLUGINS_TO_NOT_SYMLINK=('wpcloud-sso')
112113
for DIR in /usr/local/src/jetpack-monorepo/projects/plugins/*; do
113114
[[ -d "$DIR" ]] || continue # We are only interested in directories, e.g. different plugins.
114115
[[ -f "$DIR/composer.json" ]] || continue # If there's no composer.json in the folder, it's probably not a plugin.
115116
PLUGIN="$(basename "$DIR")"
116117

118+
# Some plugins should not be symlinked
119+
printf '%s\n' "${PLUGINS_TO_NOT_SYMLINK[@]}" | grep -qxF "$PLUGIN" && continue
120+
117121
# Read plugin slug from composer.json, with fallback to beta-plugin-slug
118122
PLUGIN_SLUG=$(jq -r '.extra["wp-plugin-slug"] // .extra["beta-plugin-slug"]' "$DIR/composer.json")
119123

@@ -124,8 +128,6 @@ for DIR in /usr/local/src/jetpack-monorepo/projects/plugins/*; do
124128
fi
125129
done
126130

127-
128-
129131
WP_HOST_PORT=":$HOST_PORT"
130132

131133
if [ 80 -eq "$HOST_PORT" ]; then

0 commit comments

Comments
 (0)