Nothing should have group writable permissions

These might occur due to difference in umask values.
This commit is contained in:
Paul van Tilburg
2017-01-22 20:40:39 +01:00
parent 55a17f6153
commit 17617334dd

View File

@@ -52,6 +52,10 @@ echo -e "\n -- Paul Chote <paul@chote.net> ${DATE}" >> "${DEB_BUILD_ROOT}/${DOC
gzip -9 "${DEB_BUILD_ROOT}/${DOCDIR}/changelog"
rm "${DEB_BUILD_ROOT}/${LIBDIR}/COPYING"
# Nothing should have group writable permissions
# (These might occur due to difference in umask values.)
chmod -R g-w "${DEB_BUILD_ROOT}"
# Create the control file
PACKAGE_SIZE=`du --apparent-size -c "${DEB_BUILD_ROOT}/usr" | grep "total" | awk '{print $1}'`
sed "s/{VERSION}/$VERSION/" DEBIAN/control | sed "s/{SIZE}/$PACKAGE_SIZE/" > "${DEB_BUILD_ROOT}/DEBIAN/control"