Skip to content
Snippets Groups Projects
Select Git revision
  • 01b9fc63f083fc64774d3e5dca576464b299015b
  • tardis default
  • online-lip-2020
  • ss18
  • ws18
  • master protected
  • ws17
  • ss17
  • ws16
  • ss16
  • ws15 protected
  • ss15 protected
  • ws14 protected
  • buildhauer protected
  • ss14 protected
15 results

install_pkg.sh

Blame
  • user avatar
    Christopher Spinrath authored
    187321d1
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    install_pkg.sh 762 B
    #!/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