Skip to content
Snippets Groups Projects
Commit 751814b8 authored by Valentin Bruch's avatar Valentin Bruch
Browse files

fixed mistake in linuxparty.sh; apt is strange

parent cb708156
No related branches found
No related tags found
No related merge requests found
...@@ -368,9 +368,8 @@ echo ...@@ -368,9 +368,8 @@ echo
echo "Sonst muss aus dem Internet heraus installiert werden. Das ist langsam, geht aber auch." echo "Sonst muss aus dem Internet heraus installiert werden. Das ist langsam, geht aber auch."
# Make sure that RWTH update server ist listed in the packages sources # Make sure that RWTH update server ist listed in the packages sources
if grep -q 'halifax' /etc/apt/sources.list if ! grep -q 'rwth' /etc/apt/sources.list
then then
else
source /etc/lsb-release source /etc/lsb-release
newsourcefile=$(mktemp) newsourcefile=$(mktemp)
echo "deb http://ftp.halifax.rwth-aachen.de/ubuntu/ $DISTRIB_CODENAME main restricted universe multiverse echo "deb http://ftp.halifax.rwth-aachen.de/ubuntu/ $DISTRIB_CODENAME main restricted universe multiverse
...@@ -406,7 +405,7 @@ fi ...@@ -406,7 +405,7 @@ fi
echo echo
echo "Bereitstellung der Paketquellen" echo "Bereitstellung der Paketquellen"
# Entweder apt-get update # Entweder apt-get update
# Oder apt-clone restore # Oder apt-clone restore (apt-clone ist in Kubuntu 21.10 nicht mehr verfügbar)
if [[ $HAVELIPSTICK -eq 1 ]] if [[ $HAVELIPSTICK -eq 1 ]]
then then
# infuse script has already done our job here # infuse script has already done our job here
......
...@@ -26,7 +26,7 @@ case $ACTION in ...@@ -26,7 +26,7 @@ case $ACTION in
exit 2 exit 2
fi fi
install_repo "$2" install_repo "$2"
apt-get update apt-get -o "Dir::Etc::SourceList=$FILENAME" update
echo "Repository is now active, remember to call \"$0 off\" to deactivate it when you are done." echo "Repository is now active, remember to call \"$0 off\" to deactivate it when you are done."
;; ;;
"off") "off")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment