@@ -16,10 +16,8 @@ set -e
1616trap cleanup SIGINT SIGTERM ERR EXIT
1717
1818# --- Variables ---
19- INSTALL_K3S_VERSION=${INSTALL_K3S_VERSION:- " v1.32.3+k3s1" }
2019DV_CHART_REGISTRY_URL=${DV_CHART_REGISTRY_URL:- " https://helm.gradle.com/" }
21- DV_VERSION=${DV_VERSION:- " 2025.1.0" }
22- Script_Version=" 0.1"
20+ SCRIPT_VERSION=" 0.1"
2321
2422# Log File
2523LOGFILE=" $( pwd) /install_$( date +' %Y%m%d_%H%M%S' ) .log"
@@ -108,23 +106,6 @@ echo -e "${YELLOW}-u, --uninstall${NOFORMAT} Uninstall Develocity Platform"
108106exit
109107}
110108
111- # --- Validation functions ---
112- # Check if the script is running as root
113- # This is not used at the moment.
114- # validateSudo () {
115- # local OS_TYPE=$(uname)
116- # if [ "$OS_TYPE" == "Linux" ] && [ $EUID -ne 0 ]; then
117- # exitError "This script must be run as root or with sudo."
118- # elif [ "$OS_TYPE" != "Linux" ]; then
119- # exitError "This script is only supported on Linux."
120- # fi
121-
122- # local ARCHITECTURE=$(uname -m)
123- # if [ "$ARCHITECTURE" != "x86_64" ]; then
124- # exitError "This script is only supported on x86_64 architecture."
125- # fi
126- # }
127-
128109# Check if the OS is Linux and x86_64
129110validateOS () {
130111 local OS_TYPE
@@ -230,7 +211,6 @@ installK3s(){
230211 checkUrl " ${baseUrl} "
231212
232213 logInfo " Installing K3s..."
233- export INSTALL_K3S_VERSION=" ${INSTALL_K3S_VERSION} "
234214 curl -s -fL ${baseUrl} | sh - || exitError " Failed to install k3s"
235215}
236216
@@ -270,7 +250,6 @@ installPlatformChart(){
270250 helm repo add gradle " ${baseUrl} " && \
271251 helm repo update && \
272252 helm install \
273- --version " ${DV_VERSION} " \
274253 --create-namespace --namespace develocity \
275254 ge-standalone \
276255 gradle/gradle-enterprise-standalone \
0 commit comments