forked from XiaoMo/ChatGPT-Next-Web
setup shell support for debian
This commit is contained in:
parent
b3fd56c2c1
commit
19dd71eb05
@ -10,7 +10,7 @@ case "$(uname -s)" in
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [[ ! "$(cat /etc/*-release | grep '^ID=')" =~ ^(ID=\"ubuntu\")|(ID=\"centos\")|(ID=\"arch\")$ ]]; then
|
if [[ ! "$(cat /etc/*-release | grep '^ID=')" =~ ^(ID=\"ubuntu\")|(ID=\"centos\")|(ID=\"arch\")|(ID=\"debian\")$ ]]; then
|
||||||
echo "Unsupported Linux distribution."
|
echo "Unsupported Linux distribution."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@ -32,6 +32,9 @@ if ! command -v node >/dev/null || ! command -v git >/dev/null || ! command -v y
|
|||||||
if [[ "$(cat /etc/*-release | grep '^ID=')" = "ID=ubuntu" ]]; then
|
if [[ "$(cat /etc/*-release | grep '^ID=')" = "ID=ubuntu" ]]; then
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get -y install nodejs git yarn
|
sudo apt-get -y install nodejs git yarn
|
||||||
|
elif [[ "$(cat /etc/*-release | grep '^ID=')" = "ID=debian" ]]; then
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get -y install nodejs git yarn
|
||||||
elif [[ "$(cat /etc/*-release | grep '^ID=')" = "ID=centos" ]]; then
|
elif [[ "$(cat /etc/*-release | grep '^ID=')" = "ID=centos" ]]; then
|
||||||
sudo yum -y install epel-release
|
sudo yum -y install epel-release
|
||||||
sudo yum -y install nodejs git yarn
|
sudo yum -y install nodejs git yarn
|
||||||
|
Loading…
Reference in New Issue
Block a user