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
Branches
No related tags found
No related merge requests found
......@@ -368,9 +368,8 @@ echo
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
if grep -q 'halifax' /etc/apt/sources.list
if ! grep -q 'rwth' /etc/apt/sources.list
then
else
source /etc/lsb-release
newsourcefile=$(mktemp)
echo "deb http://ftp.halifax.rwth-aachen.de/ubuntu/ $DISTRIB_CODENAME main restricted universe multiverse
......@@ -406,7 +405,7 @@ fi
echo
echo "Bereitstellung der Paketquellen"
# 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 ]]
then
# infuse script has already done our job here
......
......@@ -26,7 +26,7 @@ case $ACTION in
exit 2
fi
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."
;;
"off")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment