]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
create_debug_archive.sh: Fix cleanup and permission.
authorBenjamin Drung <benjamin.drung@profitbricks.com>
Mon, 28 Jul 2014 17:52:05 +0000 (19:52 +0200)
committerBenjamin Drung <benjamin.drung@profitbricks.com>
Mon, 28 Jul 2014 17:52:05 +0000 (19:52 +0200)
liveboot-dbg-tar/create_debug_archive.sh

index 97bdd5c0148b8b75a04cd12543ad5f03b637061f..b9edf6a698d6257cc068b9089839bd5ddd690056 100755 (executable)
@@ -12,6 +12,7 @@ session_id=
 cleanup() {
        if test -n "$session_id"; then
                schroot -e -c $session_id
+               session_id=
        fi
 }
 
@@ -80,9 +81,9 @@ run_in_chroot find ethoip6_dbg -name "*.ko" -exec mv {} $assembledir/ethoip6-$et
 
 run_in_chroot tee $assembledir/README < $script_dir/README
 run_in_chroot tar --owner=root -Ipixz -cf "$resultfile" liveboot-$liveboot_id-kernel-dbg -C $workdir
+run_in_chroot chmod +rx $workdir
 cp $chroot_dir/$workdir/$resultfile $resultpath
 
 cleanup
-session_id=
 # remove trap again
 trap - INT TERM EXIT