forked from olhodedeus/Redlol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
42 lines (31 loc) · 1.24 KB
/
install.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
40
41
42
#!/usr/bin/env bash
read -p "Do you want me to install Redolol Bot? (Y/N): "
if [ "$REPLY" != "Y" ]; then
echo "Exiting..."
else
echo -e "\e[1;36mUpdating packages\e[0m"
sudo apt-get update -y
echo -e "\e[1;36mInstalling dependencies\e[0m"
sudo apt-get install libreadline-dev libssl-dev lua5.2 luarocks liblua5.2-dev git make unzip redis-server curl libcurl4-gnutls-dev -y
echo -e "\e[1;36mInstalling LuaRocks from sources\e[0m"
git clone http://github.com/keplerproject/luarocks
cd luarocks
./configure --lua-version=5.2
make build
sudo make install
cd ..
echo -e "\e[1;36mInstalling rocks\e[0m"
rocks="luasocket luasec redis-lua lua-term serpent dkjson Lua-cURL luautf8"
for rock in $rocks; do
sudo luarocks install $rock
done
branch="master"
read -p "Do you want to install redlol? (Y/N): "
if [ "$REPLY" == "Y" ]; then
branch="master"
fi
echo -e "\e[1;36mFetching latest Group Butler source code (branch: $branch)\e[0m"
git clone -b $branch https://github.com/olhodedeus/Redlol.git
echo -e "\e[1;32mGroup Butler successfully installed! Change values in config file and run ./launch.sh\e[0m"
echo " "
fi