Project

General

Profile

« Previous | Next » 

Revision 353b946c

Added by Lukas Zapletal over 10 years ago

fixes #2613 - foreman-debug tarball directories stripped

View differences:

script/foreman-debug
if [ $NOGENERIC -eq 0 ]; then
printv "Collecting generic system information"
add_cmd "date" "date"
add_cmd "lsb_release -a" "lsb_release"
add_cmd "uname -a" "uname"
add_cmd "cat /proc/cpuinfo" "cpuinfo"
......
qprintf "\n\n"
if [ "$NOTAR" -eq 0 ]; then
tar -c "$DIR" 2>/dev/null | $COMPRESS > "$TARBALL"
pushd "$DIR" >/dev/null
tar -c . 2>/dev/null | $COMPRESS > "$TARBALL"
popd >/dev/null
qprintf "%s: %s\n\n" "A debug file has been created" "$TARBALL ($(stat -c %s "$TARBALL") bytes)"
else
qprintf "%s: %s\n\n" "A debug directory has been created" "$DIR"

Also available in: Unified diff