Commit 88ff3aaf authored by Holger Levsen's avatar Holger Levsen

reproducible Debian: add support for common-$DPKG_ARCH files

Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent f1d8850b
......@@ -539,7 +539,15 @@ fi
# deploy package configuration in /etc and /usr
#
cd $BASEDIR
for h in common "$HOSTNAME" ; do
for h in common common-amd64 common-i386 common-arm64 common-armhf "$HOSTNAME" ; do
# $HOSTNAME has precedence over common-$DPKG_ARCH over common
case $h in
common-amd64) [ $DPKG_ARCH = "amd64" ] || continue ;;
common-i386) [ $DPKG_ARCH = "i386" ] || continue ;;
common-arm64) [ $DPKG_ARCH = "arm64" ] || continue ;;
common-armhf) [ $DPKG_ARCH = "armhf" ] || continue ;;
*) ;;
esac
if [ -d "hosts/$h/etc/sudoers.d/" ]; then
for f in "hosts/$h/etc/sudoers.d/"* ; do
/usr/sbin/visudo -c -f "$f"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment