Skip to content

Commit

Permalink
feat: complete dependency checks on other system packages
Browse files Browse the repository at this point in the history
  • Loading branch information
DDSRem committed Feb 5, 2024
1 parent eace6de commit 37b94de
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,22 +194,28 @@ function get_os() {
_os_all=$(uname -a)
if [ "${_os}" == "Darwin" ]; then
OSNAME='macos'
packages_need
elif [ -f /etc/synoinfo.conf ]; then
OSNAME='synology'
packages_need
elif [ -f /etc/openwrt_release ]; then
OSNAME='openwrt'
packages_need
elif grep -Eqi "QNAP" /etc/issue; then
OSNAME='qnap'
packages_need
elif grep -Eqi "openmediavault" /etc/issue || grep -Eqi "openmediavault" /etc/os-release; then
OSNAME='openmediavault'
packages_need "apt"
elif echo -e "${_os_all}" | grep -Eqi "UnRaid"; then
OSNAME='unraid'
packages_need
elif grep -Eqi "openSUSE" /etc/*-release; then
OSNAME='opensuse'
packages_need "zypper"
elif grep -Eqi "FreeBSD" /etc/*-release; then
OSNAME='freebsd'
packages_need
elif grep -Eqi "EulerOS" /etc/*-release || grep -Eqi "openEuler" /etc/*-release; then
OSNAME='euler'
packages_need "yum"
Expand Down Expand Up @@ -239,6 +245,7 @@ function get_os() {
packages_need "apk_alpine"
else
OSNAME='unknow'
packages_need
fi

}
Expand Down

0 comments on commit 37b94de

Please sign in to comment.