-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathoci-opensuse.sh
40 lines (34 loc) · 2.04 KB
/
oci-opensuse.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/sh
echo ">>>[biniou oci 🧠 ]: biniou one-click installer for OpenSuse-based distributions"
echo ">>>[biniou oci 🧠 ]: Installing prerequisites"
if [ "$(groups|grep 'wheel')" == "" ]
then
if [ "$(cat /etc/os-release|grep "Tumbleweed")" != "" ]
then
su root -c "zypper --non-interactive install git-core python311 python3-virtualenv python3-pip python311-devel perl make cmake ffmpeg openssl libtcmalloc_minimal4 libgthread-2_0-0; zypper --non-interactive install -t pattern devel_basis"
else
su root -c "zypper --non-interactive install git-core python311 python3-virtualenv python3-pip python311-devel gcc11 perl make cmake ffmpeg openssl libtcmalloc_minimal4 libgthread-2_0-0; zypper --non-interactive install -t pattern devel_basis"
fi
else
if [ "$(cat /etc/os-release|grep "Tumbleweed")" != "" ]
then
sudo sh -c "zypper --non-interactive install git-core python311 python3-virtualenv python3-pip python311-devel perl make cmake ffmpeg openssl libtcmalloc_minimal4 libgthread-2_0-0; zypper --non-interactive install -t pattern devel_basis"
else
sudo sh -c "zypper --non-interactive install git-core python311 python3-virtualenv python3-pip python311-devel gcc11 perl make cmake ffmpeg openssl libtcmalloc_minimal4 libgthread-2_0-0; zypper --non-interactive install -t pattern devel_basis"
fi
fi
echo ">>>[biniou oci 🧠 ]: Cloning repository"
git clone --branch main https://github.com/Woolverine94/biniou.git
echo ">>>[biniou oci 🧠 ]: Installing Virtual environment"
cd ./biniou
ENV_BINIOU_PYTHON_VER="python3.11" ./install.sh
echo ">>>[biniou oci 🧠 ]: Opening port 7860/tcp and restarting firewall"
if [ "$(groups|grep 'wheel')" == "" ]
then
su root -c "firewall-cmd --zone=public --permanent --add-port 7860/tcp; firewall-cmd --reload"
else
sudo sh -c "firewall-cmd --zone=public --permanent --add-port 7860/tcp; firewall-cmd --reload"
fi
echo ">>>[biniou oci 🧠 ]: Installation finished. Use cd biniou && ./webui.sh to launch biniou. Press enter to exit"
read dummy
exit 0