-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathinit.sh
executable file
·30 lines (23 loc) · 985 Bytes
/
init.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
if [[ !$LUCEE_VERSION ]]; then
LUCEE_VERSION=5.4.5.23
fi
if [[ !$FUSELESS_VERSION ]]; then
FUSELESS_VERSION="0.2.0"
fi
if [ -f "jars/lucee-light-$LUCEE_VERSION.jar" ]; then
echo "lucee-light-$LUCEE_VERSION.jar already in jars folder, skipping download"
else
#download lucee jar
echo "Downloading lucee-light-$LUCEE_VERSION.jar"
curl --location -o jars/lucee-light-$LUCEE_VERSION.jar https://cdn.lucee.org/lucee-light-$LUCEE_VERSION.jar
fi
if [ -f "jars/foundeo-fuseless-$FUSELESS_VERSION.jar" ]; then
echo "foundeo-fuseless-$FUSELESS_VERSION.jar already in jars folder, skipping download"
else
#download lucee jar
echo "Downloading foundeo-fuseless-$FUSELESS_VERSION.jar"
curl --location -o jars/foundeo-fuseless-$FUSELESS_VERSION.jar https://github.com/foundeo/fuseless/releases/download/v$FUSELESS_VERSION/foundeo-fuseless-$FUSELESS_VERSION.jar
fi
echo ""
echo "Jars are in place, next make sure you have gradle installed: https://gradle.org/install/"