diff --git a/make.sh b/make.sh
index 38967362b1666304d34fda78fa1e327769a4e180..d9baa5237ffac099e948134d7a2b99851ca27ca6 100755
--- a/make.sh
+++ b/make.sh
@@ -1,8 +1,8 @@
 #!/bin/bash
 
 # Prikaz pro stazeni baliku
-# wget -O build.zip "https://gitlab.cesnet.cz/api/v4/projects/587/jobs/artifacts/master/download?job=build:bullseye"
-# unzip -j build.zip -d /storage/software/repository/packages/bullseye/main/
+# 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/bookworm/main/
 # rm build.zip
 
 set -x
@@ -15,15 +15,19 @@ function get_debian_security() {
     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
 cat > /etc/apt/sources.list << EOSOURCES
-deb http://ftp.zcu.cz/pub/linux/debian ${VERSION_CODENAME} main contrib non-free
-deb http://ftp.zcu.cz/pub/linux/debian ${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) ${VERSION_CODENAME} main contrib non-free
+deb $(get_debian_repo) ${VERSION_CODENAME}-updates 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 http://ftp.zcu.cz/pub/linux/debian ${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) ${VERSION_CODENAME} main contrib non-free
+deb-src $(get_debian_repo) ${VERSION_CODENAME}-updates main contrib non-free
+deb-src $(get_debian_repo)-security $(get_debian_security) main contrib non-free
 EOSOURCES
 
 apt update -qqq