浏览代码

Add some SUSE fixes

bryan 3 年之前
父节点
当前提交
51a426c66b
共有 1 个文件被更改,包括 4 次插入5 次删除
  1. 4 5
      installJRMC

+ 4 - 5
installJRMC

@@ -139,10 +139,10 @@ init() {
         firewall_cmd(){ ifSudo ufw "$@"; }
     elif [[ "$ID" =~ ^opensuse.* ]]; then
         echo "SUSE support is experimental!"
-        pkg_install(){ ifSudo zypper install -y -q "$@"; }
-        pkg_reinstall(){ ifSudo zypper install -y -q -f "$@"; }
-        pkg_remove(){ ifSudo zypper remove --clean-deps -y -q "$@"; }
-        pkg_update(){ ifSudo zypper update -y -q; }
+        pkg_install(){ ifSudo zypper install -y "$@"; }
+        pkg_reinstall(){ ifSudo zypper install -y -f "$@"; }
+        pkg_remove(){ ifSudo zypper remove --clean-deps -y "$@"; }
+        pkg_update(){ ifSudo zypper refresh; }
         pkg_query(){ ifSudo rpm -q "$@"; }
         firewall_cmd(){ ifSudo firewall-cmd "$@"; }
     fi
@@ -1329,7 +1329,6 @@ main() {
     fi
 
     # Install services
-    
     if [[ "${#_services[@]}" -gt 0 ]]; then
         setDisplay
         ! [[ -d "$_systemddir" ]] && ifSudo mkdir -p "$_systemddir"