Skip to content

Commit 868701f

Browse files
committed
Update relative paths in start.sh script for MCE installs
This installation script must have been shuffled around from the root of the repository since it contained relative paths to files and directories available from the repository root. Following the directions in the multiclusterengine/ directory results in a failed deploy because the script assumes those relative paths. This commit updates the script so that it installs cleanly by updating the relative paths. Closes #242
1 parent 3bd0a52 commit 868701f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

multiclusterengine/start.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ else
3939
echo "SNAPSHOT_CHOICE is set to ${SNAPSHOT_CHOICE}"
4040
fi
4141

42-
IMG="${_REPO}:${SNAPSHOT_CHOICE}" yq eval -i '.spec.image = env(IMG)' catalogsources/multicluster-engine.yaml
43-
oc apply -f catalogsources/multicluster-engine.yaml
42+
IMG="${_REPO}:${SNAPSHOT_CHOICE}" yq eval -i '.spec.image = env(IMG)' ../catalogsources/multicluster-engine.yaml
43+
oc apply -f ../catalogsources/multicluster-engine.yaml
4444
oc create ns multicluster-engine --dry-run=client -o yaml | oc apply -f -
45-
oc apply -k multiclusterengine/operator/
45+
oc apply -k operator/
4646

4747
CSVName=""
4848
for run in {1..10}; do
@@ -76,7 +76,7 @@ for run in {1..10}; do
7676
done
7777

7878
if [ $_apiReady -eq 1 ]; then
79-
oc apply -f multiclusterengine/multicluster_v1alpha1_multiclusterengine.yaml
79+
oc apply -f multicluster_v1alpha1_multiclusterengine.yaml
8080
echo "multiclusterengine installed successfully"
8181
else
8282
echo "multiclusterengine subscription could not install in the allotted time."

0 commit comments

Comments
 (0)