File virt-manager-supportconfig of Package virt-manager

#!/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"
openSUSE Build Service is sponsored by