Improve SUSE uninstall

This commit is contained in:
2021-12-03 17:49:20 -05:00
parent b814d99a20
commit b46cf3c56a

View File

@@ -139,7 +139,7 @@ init() {
echo "SUSE support is experimental!"
pkg_install(){ ifSudo zypper --non-interactive -q install --force --no-confirm "$@"; }
pkg_remove(){ ifSudo zypper --non-interactive -q remove --clean-deps "$@"; }
pkg_update(){ ifSudo zypper --non-interactive -q refresh; }
pkg_update(){ ifSudo zypper --non-interactive -q refresh jriver; }
pkg_query(){ ifSudo rpm -q "$@"; }
firewall_cmd(){ ifSudo firewall-cmd "$@"; }
fi
@@ -1234,6 +1234,9 @@ uninstall() {
&& rm_cmd "/etc/yum.repos.d/jriver.repo"
[[ -f "/etc/apt/sources.list.d/jriver.list" ]] \
&& rm_cmd "/etc/apt/sources.list.d/jriver.list"
if [[ "$ID" =~ ^opensuse.* ]]; then
ifSudo zypper rr jriver > /dev/null 2>&1
fi
debug "Removing firewall rules"
if [[ -x $(command -v firewall-cmd) ]]; then