summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2021-12-20 13:47:50 +0100
committerSimon Rettberg2021-12-20 13:47:50 +0100
commit33058188df08f7711d8bd971d973e8211dff5e62 (patch)
tree76ccb8c157534d0fa38c1f15e3bdd33d66fdc813
parent[SS?S] Add simple issue for login prompt (diff)
downloadsetup-scripts-33058188df08f7711d8bd971d973e8211dff5e62.tar.gz
setup-scripts-33058188df08f7711d8bd971d973e8211dff5e62.tar.xz
setup-scripts-33058188df08f7711d8bd971d973e8211dff5e62.zip
[SSUS] Download shared tars from install server
-rwxr-xr-xsatellit_upgrader/pack-update.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/satellit_upgrader/pack-update.sh b/satellit_upgrader/pack-update.sh
index ac60a89..6c6904a 100755
--- a/satellit_upgrader/pack-update.sh
+++ b/satellit_upgrader/pack-update.sh
@@ -145,6 +145,17 @@ fi
#declare -rg TMPDIR=$(mktemp -d)
#[ -d "$TMPDIR" ] || perror "TMPDIR fail."
+downpayload () {
+ local FILEVAR="TGZ_$1"
+ FILEVAR="${!FILEVAR}"
+ if [ -s "$FILEVAR" ]; then
+ echo "${RED}Not${RESET} downloading $FILEVAR as it already exists in source dir..."
+ return
+ fi
+ echo "Fetching $1..."
+ wget --quiet -O "${FILEVAR}" "$2" || perror "Could not download $2"
+}
+
addpayload () {
echo -n "Includes $2: "
local FILEVAR="TGZ_$1"
@@ -165,6 +176,13 @@ addpayload () {
fi
}
+urlbase="http://132.230.4.17/install"
+
+downpayload "TFTP" "${urlbase}/openslx_tftp.tar.gz"
+downpayload "SLXADMIN" "${urlbase}/slx-admin.tar.gz"
+downpayload "DOZMOD" "${urlbase}/dozmod.tar.gz"
+downpayload "TASKMANAGER" "${urlbase}/taskmanager.tar.gz"
+
# Replace variables
# slxadmin version
echo -n "Includes SLX-Admin: "