forked from rezablack07/TabChi-6
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
63 lines (53 loc) · 1.43 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/env bash
#Create BY : @sajjad_021
install_luarocks() {
echo -e "\e[38;5;142mInstalling LuaRocks\e"
git clone https://github.com/keplerproject/luarocks.git
cd luarocks
git checkout tags/v2.4.2 # Current stable
PREFIX="$THIS_DIR/.luarocks"
./configure --prefix=$PREFIX --sysconfdir=$PREFIX/luarocks --force-config
make build && make install
cd ..
rm -rf luarocks
}
install_rocks() {
echo -e "\e[38;5;105mInstall rocks service\e"
rocks="luasocket luasec redis-lua lua-term serpent dkjson Lua-cURL multipart-post lanes"
for rock in $rocks; do
sudo luarocks install $rock
done
}
tg() {
echo -e "\e[38;5;099minstall telegram-cli\e"
rm -rf ../.telegram-cli
wget https://valtman.name/files/telegram-cli-1222
mv telegram-cli-1222 telegram-cli
chmod +x telegram-cli
chmod +x anticrash.sh
}
install2() {
echo -e "\e[38;5;034mInstalling more dependencies\e"
install_luarocks
install_rocks
py
tg
}
is() {
install2
}
py() {
sudo apt-get install python-setuptools python-dev build-essential
sudo easy_install pip
sudo pip install redis
}
if [ ! -f telegram-cli ]; then
echo -e "\033[38;5;208mError! Tg not found, Please reply to this message:\033[0;00m"
read -p "Do you want to install starter files? [y/n] = "
if [ "$REPLY" == "y" ] || [ "$REPLY" == "Y" ]; then
is
elif [ "$REPLY" == "n" ] || [ "$REPLY" == "N" ]; then
exit 1
fi
fi
lua creator.lua