[debian-lan-devel] [SCM] Debian-LAN development and packaging branch, master, updated. 0.6-5-g457ca7c
Andreas B. Mundt
andi.mundt at web.de
Mon Apr 30 09:02:12 UTC 2012
The following commit has been merged in the master branch:
commit 457ca7c9989ca9144201e644f7d09bb5a1dda7f7
Author: Andreas B. Mundt <andi.mundt at web.de>
Date: Mon Apr 30 10:55:32 2012 +0200
Fix local APT repository permissions.
Make sure packages and detached signature are readable by www-data.
diff --git a/fai/config/scripts/SERVER_A/60-APTrepository b/fai/config/scripts/SERVER_A/60-APTrepository
index ed6d797..17b555d 100755
--- a/fai/config/scripts/SERVER_A/60-APTrepository
+++ b/fai/config/scripts/SERVER_A/60-APTrepository
@@ -104,13 +104,18 @@ elif [ ! -e DebianLAN.pubkey ] ; then
gpg --export --armor > DebianLAN.pubkey
fi
-## Create archive:
+## Create archive, make sure all packages are readable by www-data:
+
+chgrp www-data /pool/main/*.deb
+chmod g+r /pool/main/*.deb
apt-ftparchive generate -c=aptftp.conf aptgenerate.conf
apt-ftparchive release -c=aptftp.conf dists/stable > dists/stable/Release
-rm -f dists/stable/Release.gpg
-gpg -u DebianLAN -b -o dists/stable/Release.gpg dists/stable/Release
+FILE=dists/stable/Release
+rm -f ${FILE}.gpg
+gpg -u DebianLAN -b -o ${FILE}.gpg $FILE
+chgrp www-data ${FILE}.gpg
EOF
chmod 0700 $target$APT_REPO_DIR/create_archive.sh
--
Debian-LAN development and packaging
More information about the debian-lan-devel
mailing list