Blame | Last modification | View Log | RSS feed
EVENT=notify component=dnf# there has to be a comment here, otherwise# the next line is interpreted as a conditionfunction fetch(){for log in $*; donew_name=${log//\//_}cp $log $new_namedone}logs=`find /var/cache/dnf -iname '*.log'`fetch $logsfetch /var/log/dnf.log# this would fail for a non-priviledged userjournalctl _SYSTEMD_UNIT=dnf-makecache.service &>dnf-makecache.logfetch /var/log/dnf.transaction.logif [[ -r username ]]; thenusername=`cat username`if [[ $username != "root" ]]; thenlogs=`find /var/tmp -path "/var/tmp/dnf-${username}-*" -iname '*.log'`fetch $logsfifi