25 lines
750 B
Plaintext
25 lines
750 B
Plaintext
|
#!/bin/bash
|
||
|
#############################################################
|
||
|
# Name: Supportconfig Plugin for virt-manager
|
||
|
# Description: Gathers important troubleshooting information
|
||
|
# about virt-manager
|
||
|
#############################################################
|
||
|
|
||
|
RCFILE="/usr/lib/supportconfig/resources/supportconfig.rc"
|
||
|
OF="output-virt-manager.txt"
|
||
|
|
||
|
VIRTMAN_LOG_DIR="/root/.cache/virt-manager"
|
||
|
VIRTMAN_LOG_FILES=""
|
||
|
|
||
|
if [ -s $RCFILE ]; then
|
||
|
if ! source $RCFILE; then
|
||
|
log_write $OF "ERROR: Initializing resource file: $RCFILE"
|
||
|
exit 1
|
||
|
fi
|
||
|
fi
|
||
|
|
||
|
rpm_verify $OF virt-manager || exit 111
|
||
|
|
||
|
test -d $VIRTMAN_LOG_DIR && VIRTMAN_LOG_FILES="$(find -L $VIRTMAN_LOG_DIR/ -type f)"
|
||
|
log_files $OF 0 "$VIRTMAN_LOG_FILES"
|