From 187321d1a8992352a695f9e031fd299ef03e1eba Mon Sep 17 00:00:00 2001 From: Christopher Spinrath <admin@spinrath.net> Date: Thu, 19 Mar 2015 14:19:29 +0100 Subject: [PATCH] New script to install packages from the offline repo manually --- scripts/install_pkg.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 scripts/install_pkg.sh diff --git a/scripts/install_pkg.sh b/scripts/install_pkg.sh new file mode 100644 index 0000000..482776a --- /dev/null +++ b/scripts/install_pkg.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +MY_DIR="$( readlink -f "$( dirname "${BASH_SOURCE[0]}" )" )" + +HAVELIPSTICK=0 +#Offline-Repo einbinden +if bash "$MY_DIR/infuse_offline_repo.sh" +then + HAVELIPSTICK=1 + echo "USB-Repository gefunden und eingebunden" +else + if [[ $? -eq 2 ]] + then + # Exit code 2 is handed up from mount-stick-repo.sh -> "Installation abbrechen" + echo "Installation abgebrochen" + exit 2 + else + #warn "LIP-Install-USB-Stick nicht nutzbar." + #warn "Stelle eine Internetverbindung her und mache weiter (langsames Installieren)" + #warn "Wenn Du nicht weiter weißt, frage einen Helfer." + #pressenter + echo "LIP-Install-USB-Stick nicht nutzbar." + fi +fi + +apt-get install $@ + +echo "Deaktiviere LIP Software Repository" +bash $MY_DIR/liprepoctl.sh off -- GitLab