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

changed offline repo directory name: include DISTRIB_CODENAME

parent 2c04efb4
Branches
Tags
No related merge requests found
#!/bin/sh #!/bin/sh
sed -i -e '/ubuntu\.com/d' -e '/^$/d' /root/etc/apt/sources.list sed -i -e '/ubuntu\.com/d' -e '/^$/d' /root/etc/apt/sources.list
sed -i -e 's/lsb_release\.get_lsb_information()/lsb_release.get_distro_information()/g' /root/usr/bin/apt-clone # only relevant for kubuntu <= 20.04 sed -i -e 's/lsb_release\.get_lsb_information()/lsb_release.get_distro_information()/g' /root/usr/bin/apt-clone # only relevant for kubuntu <= 20.04
echo "deb [ arch=amd64 trusted=yes ] file:///isodevice/archives $(sed -n 's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p' /root/etc/lsb-release) lip" >> /root/etc/apt/sources.list echo "deb [ arch=amd64 trusted=yes ] file:///isodevice/archives-$(sed -n 's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p' /root/etc/lsb-release) $(sed -n 's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p' /root/etc/lsb-release) lip" >> /root/etc/apt/sources.list
echo "deb http://ftp.halifax.rwth-aachen.de/ubuntu/ $(sed -n 's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p' /root/etc/lsb-release) main restricted universe multiverse" >> /root/etc/apt/sources.list echo "deb http://ftp.halifax.rwth-aachen.de/ubuntu/ $(sed -n 's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p' /root/etc/lsb-release) main restricted universe multiverse" >> /root/etc/apt/sources.list
echo "deb http://ftp.halifax.rwth-aachen.de/ubuntu/ $(sed -n 's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p' /root/etc/lsb-release)-security main restricted universe multiverse" >> /root/etc/apt/sources.list echo "deb http://ftp.halifax.rwth-aachen.de/ubuntu/ $(sed -n 's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p' /root/etc/lsb-release)-security main restricted universe multiverse" >> /root/etc/apt/sources.list
echo "deb http://ftp.halifax.rwth-aachen.de/ubuntu/ $(sed -n 's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p' /root/etc/lsb-release)-updates main restricted universe multiverse" >> /root/etc/apt/sources.list echo "deb http://ftp.halifax.rwth-aachen.de/ubuntu/ $(sed -n 's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p' /root/etc/lsb-release)-updates main restricted universe multiverse" >> /root/etc/apt/sources.list
......
...@@ -11,7 +11,7 @@ DIST_VERSION=$DISTRIB_RELEASE ...@@ -11,7 +11,7 @@ DIST_VERSION=$DISTRIB_RELEASE
function install_repo() function install_repo()
{ {
echo "# offline repository of the linux install party echo "# offline repository of the linux install party
deb [ arch=amd64 trusted=yes ] file://$1/archives $DIST_CODENAME lip" > "$FILENAME" deb [ arch=amd64 trusted=yes ] file://$1/archives-$DIST_CODENAME $DIST_CODENAME lip" > "$FILENAME"
} }
function uninstall_repo() function uninstall_repo()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment