-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathinstall.sh
More file actions
29 lines (21 loc) · 810 Bytes
/
install.sh
File metadata and controls
29 lines (21 loc) · 810 Bytes
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
#!/usr/bin/env bash
read -p "Do you want me to install Magic Anti Spam 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 python2.7 python-pip -y
echo -e "\e[1;36mInstalling python modules\e[0m"
modules="requests redis"
for module in $modules; do
sudo pip install --upgrade $module
done
echo -e "\e[1;36mFetching latest Magic Anti Spam source code\e[0m"
git clone https://github.com/MagicNews/ASMagic.git
cd ASMagic
sudo chmod 777 launch.sh
echo -e "\e[1;32mMagicAntiSpam successfully installed! Change values in config file and run ./launch.sh\e[0m"
echo " "
fi