update to cac5ce16b940ecde652c040dcbb911c6da692a54 dec 30 2021
[automated-distro-installer] / fai / config / scripts / LAST / 50-misc
index a573f5081e7a95dcf74472725342ff269676f65e..2a7271b777041292a96527f85bab611d92125612 100755 (executable)
@@ -90,7 +90,7 @@ deb $security_cdn/debian-security ${secsuite} main contrib non-free
 #deb [trusted=yes] http://fai-project.org/download $release koeln
 EOF
     # if the package fai-server was installed, enable the project's repository
-    if [ -f $target/var/lib/dpkg/info/fai-server.list ]; then
+    if dpkg-query --admindir=$target/var/lib/dpkg -W fai-server >/dev/null 2>&1; then
        sed -i -e '/fai-project.org/s/^#//' $target/etc/apt/sources.list
     fi
 fi