-
Notifications
You must be signed in to change notification settings - Fork 2
/
GbS.sh
26 lines (25 loc) · 976 Bytes
/
GbS.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
#! /bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
#Check system and install
if [[ -f /etc/redhat-release ]]; then
wget https://raw.githubusercontent.com/xratzh/GhostBlog_SSL/master/rpm.sh
sudo bash rpm.sh
rm rpm.sh
elif cat /etc/issue | grep -Eqi "debian|ubuntu"; then
wget https://raw.githubusercontent.com/xratzh/GhostBlog_SSL/master/deb.sh
sudo bash deb.sh
rm deb.sh
elif cat /etc/issue | grep -Eqi "centos|red hat|redhat"; then
wget https://raw.githubusercontent.com/xratzh/GhostBlog_SSL/master/rpm.sh
sudo bash rpm.sh
rm rpm.sh
elif cat /proc/version | grep -Eqi "debian|ubuntu"; then
wget https://raw.githubusercontent.com/xratzh/GhostBlog_SSL/master/deb.sh
sudo bash deb.sh
rm deb.sh
elif cat /proc/version | grep -Eqi "centos|red hat|redhat"; then
wget https://raw.githubusercontent.com/xratzh/GhostBlog_SSL/master/rpm.sh
sudo bash rpm.sh
rm rpm.sh
fi