From 33058188df08f7711d8bd971d973e8211dff5e62 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 20 Dec 2021 13:47:50 +0100 Subject: [SSUS] Download shared tars from install server --- satellit_upgrader/pack-update.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'satellit_upgrader') 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: " -- cgit v1.2.3-55-g7522