diff --git a/tools/sanitize-deb.sh b/tools/sanitize-deb.sh index e1c523fb8..6ad2b6743 100755 --- a/tools/sanitize-deb.sh +++ b/tools/sanitize-deb.sh @@ -56,8 +56,7 @@ while [ $# -gt 0 ]; do sed -i~ "s/,$//g" deb-temp/DEBIAN/control sed -i~ "/^[^:]*: $/d" deb-temp/DEBIAN/control rm deb-temp/DEBIAN/control~ - chown -R 0:0 deb-temp - chmod 600 deb-temp/DEBIAN/md5sums + chown -R root:root deb-temp dpkg-deb -b deb-temp $DEB rm -rf deb-temp shift