Skip to content

Commit 792aed9

Browse files
committed
feat: move opal-search plugins to archive
1 parent 3d406f7 commit 792aed9

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

opal-server/src/main/bin/opal

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ CLASSPATH="${OPAL_HOME}/conf:${OPAL_DIST}/lib/*"
3939
PLUGINS_DIR="${OPAL_HOME}/plugins/"
4040
[ -e "${PLUGINS_DIR}/.archive" ] || mkdir -p "${PLUGINS_DIR}/.archive"
4141

42+
# Iterate over deprecated plugins
43+
find "$PLUGINS_DIR" -type d -name "opal-search-*" | grep -v ".archive" | while IFS= read -r deprecated; do
44+
# Move the deprecated folder to archive folder
45+
mv "$deprecated" "${PLUGINS_DIR}/.archive"
46+
done
47+
4248
# Iterate over plugins zip files
4349
find "$PLUGINS_DIR" -type f -name "*-dist.zip" | grep -v ".archive" | while IFS= read -r zip_file; do
4450
# Unzip each zip file

opal-server/src/main/deb/systemd/start.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ CLASSPATH="${OPAL_HOME}/conf:${OPAL_DIST}/lib/*"
55
PLUGINS_DIR="${OPAL_HOME}/plugins/"
66
[ -e "${PLUGINS_DIR}/.archive" ] || mkdir -p "${PLUGINS_DIR}/.archive"
77

8+
# Iterate over deprecated plugins
9+
find "$PLUGINS_DIR" -type d -name "opal-search-*" | grep -v ".archive" | while IFS= read -r deprecated; do
10+
# Move the deprecated folder to archive folder
11+
mv "$deprecated" "${PLUGINS_DIR}/.archive"
12+
done
13+
814
# Iterate over plugins zip files
915
find "$PLUGINS_DIR" -type f -name "*-dist.zip" | grep -v ".archive" | while IFS= read -r zip_file; do
1016
# Unzip each zip file

opal-server/src/main/rpm/start.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ CLASSPATH="${OPAL_HOME}/conf:${OPAL_DIST}/lib/*"
55
PLUGINS_DIR="${OPAL_HOME}/plugins/"
66
[ -e "${PLUGINS_DIR}/.archive" ] || mkdir -p "${PLUGINS_DIR}/.archive"
77

8+
# Iterate over deprecated plugins
9+
find "$PLUGINS_DIR" -type d -name "opal-search-*" | grep -v ".archive" | while IFS= read -r deprecated; do
10+
# Move the deprecated folder to archive folder
11+
mv "$deprecated" "${PLUGINS_DIR}/.archive"
12+
done
13+
814
# Iterate over plugins zip files
915
find "$PLUGINS_DIR" -type f -name "*-dist.zip" | grep -v ".archive" | while IFS= read -r zip_file; do
1016
# Unzip each zip file

0 commit comments

Comments
 (0)