[debian-lan-devel] [SCM] Debian-LAN development and packaging branch, master, updated. 0.7-4-g026a2ee
Andreas B. Mundt
andi at debian.org
Tue Jan 8 20:22:09 UTC 2013
The following commit has been merged in the master branch:
commit 026a2ee741ff160c414f1cb2383a30ed41abe31b
Author: Andreas B. Mundt <andi at debian.org>
Date: Mon Jan 7 18:41:59 2013 +0100
Fix APT repository script: Escape the '$' and fix permissions.
Be more verbose. Allow apache to serve the Release file and its
signature Release.gpg.
diff --git a/fai/config/scripts/SERVER_A/60-APTrepository b/fai/config/scripts/SERVER_A/60-APTrepository
index 0211960..d30aa65 100755
--- a/fai/config/scripts/SERVER_A/60-APTrepository
+++ b/fai/config/scripts/SERVER_A/60-APTrepository
@@ -109,13 +109,14 @@ fi
chgrp www-data pool/main/*.deb
chmod g+r pool/main/*.deb
+FILE=dists/stable/Release
apt-ftparchive generate -c=aptftp.conf aptgenerate.conf
-apt-ftparchive release -c=aptftp.conf dists/stable > dists/stable/Release
+apt-ftparchive release -c=aptftp.conf dists/stable > \$FILE
-FILE=dists/stable/Release
-rm -f ${FILE}.gpg
-gpg -u DebianLAN -b -o ${FILE}.gpg $FILE
-chgrp www-data ${FILE}.gpg
+rm -f \${FILE}.gpg
+gpg -vv -u DebianLAN -b -o \${FILE}.gpg \$FILE
+chgrp www-data \${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