]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
use sudo :-D
authorHolger Levsen <holger@layer-acht.org>
Mon, 31 Oct 2011 17:56:40 +0000 (18:56 +0100)
committerHolger Levsen <holger@layer-acht.org>
Mon, 31 Oct 2011 17:56:40 +0000 (18:56 +0100)
build-oot.sh

index 2d9a6ee1a9b8223cf08d7a1a2d7d29b09e463025..19ebd097e9dac729eaaf41de676663cde095da39 100755 (executable)
@@ -35,12 +35,6 @@ else
        export PB_SUITE=$4
 fi
 
-cat > /etc/kernel-pkg.conf << EOF
-maintainer := Profitbricks GmbH
-email := support@profitbricks.com
-priority := Low
-EOF
-
 TMPFILE=$(mktemp)
 
 echo "Building $OOT_MODULE for kernel profitbricks-$PB_FLAVOUR for $DIST and $PB_SUITE using script in $TMPFILE which has this content:"
@@ -62,6 +56,11 @@ cat > $TMPFILE << EOF
        cd /usr/share/doc/linux-image-*profitbricks-$PB_FLAVOUR
        zcat changelog.Debian.gz > changelog
         our_version=\$(dpkg-parsechangelog -l./changelog|grep-dctrl -n -s Version ''|cut -d "-" -f4)
+       cat > /etc/kernel-pkg.conf << EFO
+maintainer := Profitbricks GmbH
+email := support@profitbricks.com
+priority := Low
+EFO
        echo "debian = \\\$(version)-\$our_version" >> /etc/kernel-pkg.conf
 
         cd /usr/src/