projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
874499f
)
Produce different schroot config files depending on distro
author
Peter Palfrader
<peter@palfrader.org>
Tue, 7 May 2013 08:59:33 +0000
(10:59 +0200)
committer
Peter Palfrader
<peter@palfrader.org>
Tue, 7 May 2013 08:59:33 +0000
(10:59 +0200)
modules/porterbox/files/setup-dchroot
patch
|
blob
|
history
diff --git
a/modules/porterbox/files/setup-dchroot
b/modules/porterbox/files/setup-dchroot
index
5565ba1
..
e741b2d
100755
(executable)
--- 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