Bugzilla – Attachment 76653 Details for
Bug 116365
save_y2logs saves in a different directory
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
save_y2logs with improvements mentioned
save_y2logs (text/plain), 1016 bytes, created by
Stefan Hundhammer
on 2006-04-05 13:23:42 UTC
(
hide
)
Description:
save_y2logs with improvements mentioned
Filename:
MIME Type:
Creator:
Stefan Hundhammer
Created:
2006-04-05 13:23:42 UTC
Size:
1016 bytes
patch
obsolete
>#!/bin/bash ># ># save_y2logs - save YaST2 logs to a compressed tar file ># to attach it to a Bugzilla bug report ># ># Author: Stefan Hundhammer <sh@suse.de> > >usage() >{ > echo "Usage: $0 <tgz-file-name>" > echo "" > echo "Copies the YaST2 logs to a compressed tar archive." > exit 1 >} > >test -z "$1" && usage > >case "$1" in > -*) > usage > ;; > > *.tgz|*.tar.gz) > TARGET="$1" > COMPRESSION=--gzip > ;; > > *.tar.bz2) > TARGET="$1" > COMPRESSION=--bzip2 > > if [ ! -x /usr/bin/bzip2 ]; then > echo "FATAL: /usr/bin/bzip2 not available" >&2 > # This might easily happen in the inst-sys > exit 3 > fi > ;; > > *) > echo "FATAL: Uncompressed archives not supported" >&2 > echo "Use one of: .tgz .tar.gz .tar.bz2" >&2 > exit 4 >esac > > >LIST=YaST2 > >if [ -f /var/log/evms-engine.log ]; then > LIST="$LIST $( cd /var/log/; ls evms-engine.*)" >fi > >echo "Saving y2logs to $TARGET" > >tar cf "$TARGET" $COMPRESSION --directory=/var/log $LIST && exit 0 > >echo "FATAL: Error creating archive $TARGET" >&2 >exit 2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 116365
:
56559
|
64430
|
76651
| 76653