forked from redhat-developer/rhdh-local
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfixes.sh
More file actions
executable file
·23 lines (19 loc) · 785 Bytes
/
Copy pathfixes.sh
File metadata and controls
executable file
·23 lines (19 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
# Workaround for various issues
# Fix for https://issues.redhat.com/browse/RHIDP-3939
# needed for < 1.4
# if there is no config than the files in dynamic-plugins-root are from the image, and we need to remove them
if [ -d "dynamic-plugins-root" ]; then
echo "dynamic-plugins-root exists"
if [ ! -f "dynamic-plugins-root/app-config.dynamic-plugins.yaml" ]; then
echo "app-config.dynamic-plugins.yaml does not exist"
echo "Removing dynamic-plugins-root to fix RHIDP-3939"
rm -rf ./dynamic-plugins-root
fi
fi
# Fix for https://issues.redhat.com/browse/RHIDP-4410
# needed for < 1.3.0
echo "Removing ~/.npmrc to fix RHIDP-4410"
rm -rf ~/.npmrc
echo "Running install-dynamic-plugins.sh"
./install-dynamic-plugins.sh /dynamic-plugins-root