From: Peter Palfrader Date: Tue, 7 May 2013 08:59:33 +0000 (+0200) Subject: Produce different schroot config files depending on distro X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=07d77a0a6f925852cd744eb1ebd28d6395c03c27;p=dsa-puppet.git Produce different schroot config files depending on distro --- diff --git a/modules/porterbox/files/setup-dchroot b/modules/porterbox/files/setup-dchroot index 5565ba15..e741b2d8 100755 --- a/modules/porterbox/files/setup-dchroot +++ b/modules/porterbox/files/setup-dchroot @@ -77,9 +77,14 @@ groups=Debian,guest root-groups=adm source-groups=adm source-root-groups=adm -script-config=dsa/config EOF + if dpkg --compare-versions "$(lsb_release --release --short)" '<' 7; then + echo "script-config=dsa/config" + else + echo "profile=dsa" + fi + if [ "$THISARCH" = "$arch" ]; then echo "aliases=$suite" fi