Skip to content

Commit 5d78f27

Browse files
authored
Merge pull request #25 from nzlosh/v3.9_update
Use version in URL and specific branch for installation script
2 parents c41c1d8 + 8a91766 commit 5d78f27

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

packages/install.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
3+
BRANCH="v3.8"
4+
URL="https://raw.githubusercontent.com/StackStorm/st2-packages/$BRANCH/scripts/st2_bootstrap.sh"
5+
TIMEOUT=5
6+
7+
cat <<EOF
8+
9+
10+
Warning: Outdated URL for StackStorm install script.
11+
12+
You have used a retired URL to reach install.sh!
13+
14+
Provide the version vX.X in the URL path to install StackStorm.
15+
16+
https://stackstorm.com/packages/vX.X/install.sh.
17+
18+
19+
For example, to install St2 $BRANCH the below URL is used:
20+
21+
bash <(curl -sSL https://stackstorm.com/packages/$BRANCH/install.sh) --user=st2admin --password=Ch@ngeMe
22+
23+
24+
This script will run the StackStorm Bootstrap script using $BRANCH after $TIMEOUT seconds. Press CTRL-C to cancel the installation.
25+
26+
EOF
27+
28+
sleep $TIMEOUT
29+
echo "Executing $URL" "$@"
30+
31+
bash <(curl -sSL "$URL") "$@"

0 commit comments

Comments
 (0)