-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
42 lines (36 loc) · 1.28 KB
/
setup.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
#!/bin/bash
chmod +x *.sh
declare -A osInfo;
osInfo[/etc/redhat-release]=yum
osInfo[/etc/arch-release]=pacman
osInfo[/etc/gentoo-release]=emerge
osInfo[/etc/debian_version]=apt-get
for f in ${!osInfo[@]}
do
if [[ -f $f ]];then
echo ${osInfo[$f]} detected..
echo Installing dependencies...
if ((${osInfo[$f]} == apt-get)); then
sudo apt-get install wget curl php unzip lolcat figlet npm nodejs jq xsel -y
npm install -g localtunnel
fi
if ((${osInfo[$f]} == pacman)); then
sudo pacman -S wget curl php unzip figlet npm nodejs jq xsel --noconfirm
sudo pacman -S gem
sudo gem install lolcat
npm install -g localtunnel
fi
if ((${osInfo[$f]} == yum)); then
sudo yum install wget curl php unzip lolcat figlet npm nodejs jq xsel
npm install -g localtunnel
fi
if ((${osInfo[$f]} == emerge )); then
sudo emerge -u wget curl php unzip lolcat figlet npm nodejs jq xsel
npm install -g localtunnel
fi
fi
done
echo Installation Completed
echo satan will start automtically.
echo if it does not start, type ./satan manually. | lolcat
sleep 5; figlet satan && ./satan