feat: add dnf action support
This commit is contained in:
@@ -242,6 +242,15 @@ runCmd() { # $1=host $2=name $3=cmd
|
||||
ERROR=1
|
||||
fi
|
||||
;;
|
||||
dnf)
|
||||
if [ "${YES}" -eq 1 ]; then
|
||||
YESARG="-y"
|
||||
fi
|
||||
echo "dnf ${YESARG} upgrade --refresh" | tee -a "${LOGFILENAME}"
|
||||
if ! runSSH "${HOST}" dnf ${YESARG} upgrade --refresh | tee -a "${LOGFILENAME}"; then
|
||||
ERROR=1
|
||||
fi
|
||||
;;
|
||||
pkg)
|
||||
if [ "${YES}" -eq 1 ]; then
|
||||
YESARG="-y"
|
||||
|
||||
Reference in New Issue
Block a user