mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update lib.sh
This commit is contained in:
@@ -232,6 +232,8 @@ if [ ${_os} == "Darwin" ]; then
|
|||||||
OSNAME='macos'
|
OSNAME='macos'
|
||||||
elif grep -Eq "openSUSE" /etc/*-release; then
|
elif grep -Eq "openSUSE" /etc/*-release; then
|
||||||
OSNAME='opensuse'
|
OSNAME='opensuse'
|
||||||
|
elif grep -Eq "FreeBSD" /etc/*-release; then
|
||||||
|
OSNAME='freebsd'
|
||||||
elif grep -Eqi "Arch" /etc/issue || grep -Eq "Arch" /etc/*-release; then
|
elif grep -Eqi "Arch" /etc/issue || grep -Eq "Arch" /etc/*-release; then
|
||||||
OSNAME='arch'
|
OSNAME='arch'
|
||||||
elif grep -Eqi "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; then
|
elif grep -Eqi "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; then
|
||||||
@@ -273,6 +275,8 @@ elif [ "$OSNAME" == "opensuse" ];then
|
|||||||
echo "opensuse lib"
|
echo "opensuse lib"
|
||||||
elif [ "$OSNAME" == "arch" ];then
|
elif [ "$OSNAME" == "arch" ];then
|
||||||
echo "arch lib"
|
echo "arch lib"
|
||||||
|
elif [ "$OSNAME" == "freebsd" ];then
|
||||||
|
echo "freebsd lib"
|
||||||
elif [ "$OSNAME" == "ubuntu" ] || [ "$OSNAME" == "debian" ]; then
|
elif [ "$OSNAME" == "ubuntu" ] || [ "$OSNAME" == "debian" ]; then
|
||||||
|
|
||||||
apt install -y devscripts
|
apt install -y devscripts
|
||||||
|
|||||||
Reference in New Issue
Block a user