Skip to content
Snippets Groups Projects
Commit 06baf92b authored by Pavel Vondruska's avatar Pavel Vondruska
Browse files

Pridana podpora pro archivni repozitare

parent 8751e106
Branches master
No related tags found
No related merge requests found
Pipeline #4242 passed
#!/bin/bash #!/bin/bash
# Prikaz pro stazeni baliku # Prikaz pro stazeni baliku
# wget -O build.zip "https://gitlab.cesnet.cz/api/v4/projects/587/jobs/artifacts/master/download?job=build:bullseye" # wget -O build.zip "https://gitlab.cesnet.cz/api/v4/projects/587/jobs/artifacts/master/download?job=build:bookworm"
# unzip -j build.zip -d /storage/software/repository/packages/bullseye/main/ # unzip -j build.zip -d /storage/software/repository/packages/bookworm/main/
# rm build.zip # rm build.zip
set -x set -x
...@@ -15,15 +15,19 @@ function get_debian_security() { ...@@ -15,15 +15,19 @@ function get_debian_security() {
if [ "${VERSION_ID}" -lt "11" ]; then echo "${VERSION_CODENAME}/updates"; else echo "${VERSION_CODENAME}-security"; fi if [ "${VERSION_ID}" -lt "11" ]; then echo "${VERSION_CODENAME}/updates"; else echo "${VERSION_CODENAME}-security"; fi
} }
function get_debian_repo() {
if [ "${VERSION_ID}" -lt "10" ]; then echo "http://archive.debian.org/debian"; else echo "http://ftp.zcu.cz/pub/linux/debian"; fi
}
# Vygenerovani sources.list podle verze Debianu # Vygenerovani sources.list podle verze Debianu
cat > /etc/apt/sources.list << EOSOURCES cat > /etc/apt/sources.list << EOSOURCES
deb http://ftp.zcu.cz/pub/linux/debian ${VERSION_CODENAME} main contrib non-free deb $(get_debian_repo) ${VERSION_CODENAME} main contrib non-free
deb http://ftp.zcu.cz/pub/linux/debian ${VERSION_CODENAME}-updates main contrib non-free deb $(get_debian_repo) ${VERSION_CODENAME}-updates main contrib non-free
deb http://ftp.zcu.cz/pub/linux/debian-security $(get_debian_security) main contrib non-free deb $(get_debian_repo)-security $(get_debian_security) main contrib non-free
deb-src http://ftp.zcu.cz/pub/linux/debian ${VERSION_CODENAME} main contrib non-free deb-src $(get_debian_repo) ${VERSION_CODENAME} main contrib non-free
deb-src http://ftp.zcu.cz/pub/linux/debian ${VERSION_CODENAME}-updates main contrib non-free deb-src $(get_debian_repo) ${VERSION_CODENAME}-updates main contrib non-free
deb-src http://ftp.zcu.cz/pub/linux/debian-security $(get_debian_security) main contrib non-free deb-src $(get_debian_repo)-security $(get_debian_security) main contrib non-free
EOSOURCES EOSOURCES
apt update -qqq apt update -qqq
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment