Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #SinusBot All In One install script
- #Written by: X-Ecutioner for www.r4p3.net
- apt-get install curl -y > /dev/null
- #Configuration settings. Change those to your needs or leave them as provided for standart use.
- timeout="5" #Timeout for update check in s
- ESC_SEQ="\x1b["
- COL_RESET=$ESC_SEQ"39;49;00m" #reset color
- COL_BLACK=$ESC_SEQ"30;11m" #black color
- COL_BLACKB=$ESC_SEQ"30;01m" #black color bold
- COL_RED=$ESC_SEQ"31;11m" #red color
- COL_REDB=$ESC_SEQ"31;01m" #red color bold
- COL_GREEN=$ESC_SEQ"32;11m" #green color
- COL_GREENB=$ESC_SEQ"32;01m" #green color bold
- COL_YELLOW=$ESC_SEQ"33;11m" #yellow color
- COL_YELLOWB=$ESC_SEQ"33;01m" #yellow color bold
- COL_BLUE=$ESC_SEQ"34;11m" #blue color
- COL_BLUEB=$ESC_SEQ"34;01m" #blue color bold
- COL_MAGENTA=$ESC_SEQ"35;11m" #magenta color
- COL_MAGENTAB=$ESC_SEQ"35;01m" #magenta color bold
- COL_CYAN=$ESC_SEQ"36;11m" #cyan color
- COL_CYANB=$ESC_SEQ"36;01m" #cyan color bold
- COL_WHITE=$ESC_SEQ"37;11m" #white color
- COL_WHITEB=$ESC_SEQ"37;01m" #white color bold
- NC='\033[0m' #no color
- check_for_updates="1" #put 1=YES or 0=NO to check for updates
- #Don't change the variables below to make sure the script runs without problems!
- #
- scriptversion="1.25" #scriptversion
- scriptpassword="ruan" #scriptpassword
- datescriptversion="12.06.2017" #datescriptversion
- scriptsinusbotversion="0.9.20-a9b8dc6" #scriptsinusbotversion
- teamspeakclientversion="3.0.19.4" #scriptsinusbotversion
- scriptexpiration="03.09.2017" #scriptexpiration
- call_home="http://www.r4p3.cf" #check for updates
- call_donate_received="http://www.r4p3.cf/sinusbot_aio_donate.php?donate_received=" #check for donations received
- call_donation_goal="http://www.r4p3.cf/sinusbot_aio_donate.php?donation_goal=" #check for donation goal
- ts3clientversion="http://dl.4players.de/ts/releases/3.0.19.4/TeamSpeak3-Client-linux_amd64-3.0.19.4.run" #version of teamspeak 3 client
- ts3clientversion2="TeamSpeak3-Client-linux_amd64-3.0.19.4.run" #source file of teamspeak 3 client
- sinusbotlastversion="http://www.r4p3.cf/index.php/s/cUrlhBnK07aQPQp/download" #version of sinusbot
- sinusbotlastversion2="sinusbot-0.9.20-a9b8dc6.tar.bz2" #source file of sinusbot
- youtubeconf="http://www.r4p3.cf/index.php/s/8VnwAMnHqEYmOpr/download" #YoutubeDl Config
- youtubeconf2="youtube-dl.conf" #Name of youtubedl.conf
- sinusbotautostart="http://www.r4p3.cf/index.php/s/sdOSlRsTwPS7W35/download" #Autostart script for sinusbots
- sinusbotstart2bots="http://www.r4p3.cf/index.php/s/7P7wie3glFtJKo7/download" #Start file of sinusbot
- sinusbotstart2bots2="2_sinusbot.sh.x" #Name of start file of sinusbot
- sinusbotstart4bots="http://www.r4p3.cf/index.php/s/uUkjAq7AEXc8FSV/download" #Start file of sinusbot
- sinusbotstart4bots4="4_sinusbots.sh.x" #Name of start file of sinusbot
- sinusbotstart6bots="http://www.r4p3.cf/index.php/s/9ys7rhaVIKrwSHL/download" #Start file of sinusbot
- sinusbotstart6bots6="6_sinusbots.sh.x" #Name of start file of sinusbot
- sinusbotstart10bots="http://www.r4p3.cf/index.php/s/6N6poKbZtQAij3Y/download" #Start file of sinusbot
- sinusbotstart10bots10="10_sinusbots.sh.x" #Name of start file of sinusbot
- sinusbotstart20bots="http://www.r4p3.cf/index.php/s/dyWIVDts2n86tHm/download" #Start file of sinusbot
- sinusbotstart20bots20="20_sinusbots.sh.x" #Name of start file of sinusbot
- sinusbotstart30bots="http://www.r4p3.cf/index.php/s/QLBlHrAyyeLiV4a/download" #Start file of sinusbot
- sinusbotstart30bots30="30_sinusbots.sh.x" #Name of start file of sinusbot
- sinusbotstart50bots="http://www.r4p3.cf/index.php/s/0b3bj1K6WS7cRlv/download" #Start file of sinusbot
- sinusbotstart50bots50="50_sinusbots.sh.x" #Name of start file of sinusbot
- ipaddress=`ip route get 8.8.8.8 | awk '{print $NF; exit}'` #Your server IP adress
- sinusbotdir="/opt/" #Don't change this!
- #################################################################################################
- ##### MENU SCRIPT PASSWORD #####
- clear
- show_script_password(){
- echo -e "$COL_GREEN######################################################### $COL_RESET"
- echo -e "$COL_GREEN# SinusBot Install Script AIO$COL_RED v$scriptversion$COL_GREEN by$COL_RED X-Ecutioner $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN# Join our community at$COL_RED R4P3.NET $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN######################################################### $COL_RESET"
- echo -e "$COL_GREEN# $COL_RED PLEASE ENTER THE PASSWORD !!! $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN######################################################### $COL_RESET"
- echo -e "Answer: $COL_RESET"
- read answer
- case $answer in
- "$scriptpassword")
- printf "$COL_GREEN The Password $COL_YELLOW$answer$COL_GREEN is correct...\n${NC}"
- sleep 2
- clear
- ;;
- "q" | "Q")
- echo -e "$COL_GREEN Goodbye and see you again on$COL_RED R4P3.net $COL_RESET"
- echo ""
- exit 1
- ;;
- *)
- printf "$COL_GREEN The Password $COL_RED$answer$COL_GREEN is wrong ...\n${NC}"
- echo -e "$COL_GREEN Go on$COL_RED R4P3.net$COL_GREEN in$COL_YELLOW VIP section$COL_GREEN to see the password ! $COL_RESET"
- printf "$COL_GREEN Or you can buy the $COL_RED"P"$COL_BLUE"R""$COL_YELLOW"E""$COL_GREEN"M""$COL_MAGENTA"I""$COL_CYAN"U""$COL_RED"M"
- printf "$COL_GREEN license at$COL_BLUE XECUTIONER.FR@GMAIL.COM $COL_RESET\n"
- echo ""
- exit 1
- ;;
- esac
- }
- ##### MENU NORMAL #####
- show_SinusBotInstall(){
- printf "$COL_GREEN######################################################### $COL_RESET\n"
- printf "$COL_GREEN# SinusBot Install Script AIO$COL_RED v$scriptversion$COL_GREEN by$COL_RED X-Ecutioner $COL_GREEN # $COL_RESET\n"
- printf "$COL_GREEN# Join our community at$COL_RED R4P3.NET $COL_GREEN # $COL_RESET\n"
- printf "$COL_GREEN######################################################### $COL_RESET\n"
- }
- show_expires(){
- printf "$COL_GREEN######################################################### $COL_RESET\n"
- printf "$COL_GREEN# $COL_RED INFO:$COL_BLUEB This installation script expires on $COL_RESET $COL_GREEN # $COL_RESET\n"
- printf "$COL_GREEN# $COL_MAGENTAB $scriptexpiration $COL_RESET $COL_GREEN # $COL_RESET\n"
- }
- show_SinusBotScripts(){
- printf "$COL_GREEN######################################################### $COL_RESET\n"
- printf "$COL_GREEN# $COL_YELLOW SinusBot v$scriptsinusbotversion $COL_RESET $COL_GREEN # $COL_RESET\n"
- printf "$COL_GREEN# $COL_YELLOW Auto Installation Script $COL_RESET $COL_GREEN # $COL_RESET\n"
- printf "$COL_GREEN# $COL_YELLOW With various Scripts, Languages and Themes $COL_RESET $COL_GREEN # $COL_RESET\n"
- }
- show_SinusBotAutoScripts(){
- printf "$COL_GREEN######################################################### $COL_RESET\n"
- printf "$COL_GREEN# $COL_RED ##### PLEASE MAKE YOUR CHOICE ! ##### $COL_RESET $COL_GREEN # $COL_RESET\n"
- printf "$COL_GREEN# $COL_RED 1)$COL_GREEN 2 SinusBots with 1 instance # $COL_RESET\n"
- printf "$COL_GREEN# $COL_RED 2)$COL_GREEN 4 SinusBots with 2 instances # $COL_RESET\n"
- printf "$COL_GREEN# $COL_RED 3)$COL_GREEN 6 SinusBots with 3 instances # $COL_RESET\n"
- printf "$COL_GREEN# $COL_RED 4)$COL_GREEN 10 SinusBots with 5 instances # $COL_RESET\n"
- printf "$COL_GREEN# $COL_RED 5)$COL_GREEN 20 SinusBots with 10 instances # $COL_RESET\n"
- printf "$COL_GREEN# $COL_RED 6)$COL_GREEN 30 SinusBots with 15 instances # $COL_RESET\n"
- printf "$COL_GREEN# $COL_RED 7)$COL_GREEN 50 SinusBots with 25 instances # $COL_RESET\n"
- printf "$COL_GREEN# $COL_RED R)$COL_GREEN Undo all changes made by the script # $COL_RESET\n"
- printf "$COL_GREEN# $COL_RED A)$COL_GREEN AutoStart Script # $COL_RESET\n"
- printf "$COL_GREEN# $COL_RED U)$COL_GREEN Update SinusBots # $COL_RESET\n"
- printf "$COL_GREEN# $COL_RED L)$COL_GREEN Show Changelog # $COL_RESET\n"
- printf "$COL_GREEN# $COL_RED C)$COL_GREEN Show Credits # $COL_RESET\n"
- printf "$COL_GREEN# $COL_RED D)$COL_GREEN Make a donate to$COL_RED X-Ecutioner$COL_GREEN # $COL_RESET\n"
- printf "$COL_GREEN# $COL_RED P)$COL_GREEN Get $COL_RED"P"$COL_BLUE"R""$COL_YELLOW"E""$COL_GREEN"M""$COL_MAGENTA"I""$COL_CYAN"U""$COL_RED"M"
- printf "$COL_GREEN SinusBot AIO Installer$COL_RED $scriptversion$COL_GREEN #$COL_RESET\n"
- printf "$COL_GREEN# $COL_RED Q)$COL_GREEN Quit # $COL_RESET\n"
- printf "$COL_GREEN######################################################### $COL_RESET\n"
- printf "$COL_GREEN#$COL_YELLOW DONATIONS RECEIVED $COL_RED"; curl $call_donate_received;
- printf " $COL_CYAN DONATION GOAL $COL_RED"; curl $call_donation_goal; printf "$COL_GREEN # $COL_RESET\n"
- printf "$COL_GREEN#########################################################\n"
- printf "Answer: $COL_RESET"
- read main_menu
- }
- ###### DEPENDENCIES INSTALLATION #######
- set_dependencies(){
- sleep 1
- echo -e "$COL_GREEN $COL_YELLOW 1) Let's start by installing several dependencies $COL_RESET $COL_GREEN $COL_RESET"
- sleep 3
- echo -e "$COL_GREEN $COL_RESET $COL_RED WARNING$COL_RESET : Select$COL_GREEN yes$COL_RESET for everything ! $COL_GREEN $COL_RESET"
- sleep 5
- set_sources_list
- sleep 5
- apt-get update -y > /dev/null
- apt-get upgrade -y > /dev/null
- #apt-get -y install -t sid libc6
- sleep 5
- apt-get install x11vnc xinit xvfb libxcursor1 ca-certificates bzip2 libglib2.0-0 sudo htop screen -y > /dev/null
- update-ca-certificates > /dev/null
- echo -e "$COL_GREEN Dependencies done ... $COL_RESET"
- echo ""
- }
- ##### SET SOURCES LIST #####
- set_sources_list(){
- grep -v '.*httpredir.*' /etc/apt/sources.list > /etc/apt/sources.list_temporary
- echo "" > /etc/apt/sources.list
- sed -i '1ideb-src http://ftp.de.debian.org/debian/ jessie-updates main contrib' /etc/apt/sources.list
- sed -i '1ideb http://ftp.de.debian.org/debian/ jessie-updates main contrib' /etc/apt/sources.list
- sed -i '1i# jessie-updates, previously known as 'volatile'' /etc/apt/sources.list
- sed -i '1i#' /etc/apt/sources.list
- sed -i '1ideb-src http://security.debian.org/ jessie/updates main contrib' /etc/apt/sources.list
- sed -i '1ideb http://security.debian.org/ jessie/updates main contrib' /etc/apt/sources.list
- sed -i '1i#' /etc/apt/sources.list
- sed -i '1ideb-src http://ftp.de.debian.org/debian/ jessie main' /etc/apt/sources.list
- sed -i '1ideb http://ftp.de.debian.org/debian/ jessie main' /etc/apt/sources.list
- grep -v '.*hosts.*' /etc/hosts > /etc/hosts_temporary
- sed -i '1i127.0.0.1 blacklist.teamspeak.com' /etc/hosts
- }
- ##### SINUSBOT INSTALLATION #####
- set_sinusbot_install(){
- echo -e "$COL_GREEN $COL_YELLOW 2) Installation of SinusBot v$scriptsinusbotversion $COL_RESET $COL_GREEN $COL_RESET"
- sleep 1
- /usr/sbin/useradd sinusbot
- usermod -s /bin/bash sinusbot
- cd /etc/ssh/
- sed -i '$aDenyUsers sinusbot' sshd_config
- sleep 1
- mkdir /opt/ts3soundboard
- cd /opt/ts3soundboard
- wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
- tar -xjf $sinusbotlastversion2
- rm -R $sinusbotlastversion2
- cp config.ini.dist config.ini
- echo -e "$COL_GREEN SinusBot install done ... $COL_RESET"
- echo ""
- }
- ##### TEAMSPEAK 3 CLIENT INSTALLATION #####
- set_ts3_client_install(){
- echo -e "$COL_GREEN $COL_YELLOW 3) TeamSpeak 3 client installation v$teamspeakclientversion $COL_RESET $COL_GREEN $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET Do following: Press$COL_GREEN ENTER$COL_RESET then press$COL_GREEN q$COL_RESET $COL_GREEN $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET after that press$COL_GREEN y$COL_RESET and accept it with$COL_GREEN ENTER$COL_RESET $COL_GREEN $COL_RESET"
- wget $ts3clientversion
- chmod 0755 $ts3clientversion2
- su root -c "./$ts3clientversion2"
- echo -e "$COL_GREEN TeamSpeak 3 Client done ... $COL_RESET"
- rm -R $ts3clientversion2
- echo ""
- }
- ##### YOUTUBE INSTALLATION #####
- set_youtube_install(){
- sudo apt-get install youtube-dl -y > /dev/null
- sudo wget https://yt-dl.org/latest/youtube-dl 2>/dev/null -O /usr/local/bin/youtube-dl
- sudo chmod a+x /usr/local/bin/youtube-dl
- hash -r
- sudo youtube-dl --update > /dev/null
- #sudo youtube-dl "ytsearch:restart" > /dev/null
- echo -e "$COL_GREEN YouTube download done ... $COL_RESET"
- echo ""
- }
- ##### SETTING SINUSBOT #####
- set_setting_sinusbot(){
- echo -e "$COL_GREEN $COL_YELLOW 4) Setting SinusBot $COL_RESET $COL_GREEN $COL_RESET"
- cp plugin/libsoundbot_plugin.so /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/plugins
- chmod 0755 sinusbot
- set_youtube_install
- sed -i '1iYoutubeDLPath = "/usr/local/bin/youtube-dl"' /opt/ts3soundboard/config.ini
- wget --no-check-certificate $youtubeconf 2>/dev/null -O /etc/$youtubeconf2; chmod 644 /etc/$youtubeconf2
- echo -e "$COL_GREEN Setting SinusBot done ... $COL_RESET"
- echo ""
- }
- ##### CREATION SINUSBOT 1 INSTANCE #####
- set_created_sinusbot_1instance(){
- echo -e "$COL_GREEN $COL_YELLOW 5) Creating SinusBot $COL_RESET $COL_GREEN $COL_RESET"
- iptables -A SERVICES -p tcp -m multiport --dports 80,8100:8130,8000,443 -m comment --comment "Allow: Webserver" -j ACCEPT
- iptables -A INPUT -p tcp --dport 8101 -m state --state NEW -j ACCEPT
- cd /opt/
- wget --no-check-certificate $sinusbotstart2bots 2>/dev/null -O $sinusbotstart2bots2; chmod +x $sinusbotstart2bots2
- sed -i -e "s/ListenPort = 8087/ListenPort = 8101/g" "/opt/ts3soundboard/config.ini"
- echo -e "$COL_GREEN SinusBot created done ... $COL_RESET"
- echo ""
- }
- ##### CREATION SINUSBOT 2 INSTANCES #####
- set_created_sinusbot_2instances(){
- echo -e "$COL_GREEN $COL_YELLOW 5) Creating SinusBots $COL_RESET $COL_GREEN $COL_RESET"
- iptables -A SERVICES -p tcp -m multiport --dports 80,8100:8130,8000,443 -m comment --comment "Allow: Webserver" -j ACCEPT
- iptables -A INPUT -p tcp --dport 8101 -m state --state NEW -j ACCEPT
- iptables -A INPUT -p tcp --dport 8102 -m state --state NEW -j ACCEPT
- cd /opt/
- wget --no-check-certificate $sinusbotstart4bots 2>/dev/null -O $sinusbotstart4bots4; chmod +x $sinusbotstart4bots4
- cp -r ts3soundboard/ ts3soundboard2
- sed -i -e "s/ListenPort = 8087/ListenPort = 8101/g" "/opt/ts3soundboard/config.ini"
- sed -i -e "s/ListenPort = 8087/ListenPort = 8102/g" "/opt/ts3soundboard2/config.ini"
- sed -i -e "s/ts3soundboard/ts3soundboard2/g" "/opt/ts3soundboard2/config.ini"
- echo -e "$COL_GREEN SinusBots created done ... $COL_RESET"
- echo ""
- }
- ##### CREATION SINUSBOT 3 INSTANCES #####
- set_created_sinusbot_3instances(){
- echo -e "$COL_GREEN $COL_YELLOW 5) Creating SinusBots $COL_RESET $COL_GREEN $COL_RESET"
- iptables -A SERVICES -p tcp -m multiport --dports 80,8100:8130,8000,443 -m comment --comment "Allow: Webserver" -j ACCEPT
- iptables -A INPUT -p tcp --dport 8101 -m state --state NEW -j ACCEPT
- iptables -A INPUT -p tcp --dport 8102 -m state --state NEW -j ACCEPT
- iptables -A INPUT -p tcp --dport 8103 -m state --state NEW -j ACCEPT
- cd /opt/
- wget --no-check-certificate $sinusbotstart6bots 2>/dev/null -O $sinusbotstart6bots6; chmod +x $sinusbotstart6bots6
- cp -r ts3soundboard/ ts3soundboard2
- cp -r ts3soundboard/ ts3soundboard3
- sed -i -e "s/ListenPort = 8087/ListenPort = 8101/g" "/opt/ts3soundboard/config.ini"
- sed -i -e "s/ListenPort = 8087/ListenPort = 8102/g" "/opt/ts3soundboard2/config.ini"
- sed -i -e "s/ListenPort = 8087/ListenPort = 8103/g" "/opt/ts3soundboard3/config.ini"
- sed -i -e "s/ts3soundboard/ts3soundboard2/g" "/opt/ts3soundboard2/config.ini"
- sed -i -e "s/ts3soundboard/ts3soundboard3/g" "/opt/ts3soundboard3/config.ini"
- echo -e "$COL_GREEN SinusBots created done ... $COL_RESET"
- echo ""
- }
- ##### CREATION SINUSBOT 5 INSTANCES #####
- set_created_sinusbot_5instances(){
- echo -e "$COL_GREEN $COL_YELLOW 5) Creating SinusBots $COL_RESET $COL_GREEN $COL_RESET"
- iptables -A SERVICES -p tcp -m multiport --dports 80,8100:8130,8000,443 -m comment --comment "Allow: Webserver" -j ACCEPT
- iptables -A INPUT -p tcp --dport 8101 -m state --state NEW -j ACCEPT
- iptables -A INPUT -p tcp --dport 8102 -m state --state NEW -j ACCEPT
- iptables -A INPUT -p tcp --dport 8103 -m state --state NEW -j ACCEPT
- iptables -A INPUT -p tcp --dport 8104 -m state --state NEW -j ACCEPT
- iptables -A INPUT -p tcp --dport 8105 -m state --state NEW -j ACCEPT
- cd /opt/
- wget --no-check-certificate $sinusbotstart10bots 2>/dev/null -O $sinusbotstart10bots10; chmod +x $sinusbotstart10bots10
- cp -r ts3soundboard/ ts3soundboard2
- cp -r ts3soundboard/ ts3soundboard3
- cp -r ts3soundboard/ ts3soundboard4
- cp -r ts3soundboard/ ts3soundboard5
- sed -i -e "s/ListenPort = 8087/ListenPort = 8101/g" "/opt/ts3soundboard/config.ini"
- sed -i -e "s/ListenPort = 8087/ListenPort = 8102/g" "/opt/ts3soundboard2/config.ini"
- sed -i -e "s/ListenPort = 8087/ListenPort = 8103/g" "/opt/ts3soundboard3/config.ini"
- sed -i -e "s/ListenPort = 8087/ListenPort = 8104/g" "/opt/ts3soundboard4/config.ini"
- sed -i -e "s/ListenPort = 8087/ListenPort = 8105/g" "/opt/ts3soundboard5/config.ini"
- sed -i -e "s/ts3soundboard/ts3soundboard2/g" "/opt/ts3soundboard2/config.ini"
- sed -i -e "s/ts3soundboard/ts3soundboard3/g" "/opt/ts3soundboard3/config.ini"
- sed -i -e "s/ts3soundboard/ts3soundboard4/g" "/opt/ts3soundboard4/config.ini"
- sed -i -e "s/ts3soundboard/ts3soundboard5/g" "/opt/ts3soundboard5/config.ini"
- echo -e "$COL_GREEN SinusBots created done ... $COL_RESET"
- echo ""
- }
- set_created_sinusbot_15instances(){
- echo -e "$COL_GREEN $COL_YELLOW 5) Creating SinusBots $COL_RESET $COL_GREEN $COL_RESET"
- iptables -A SERVICES -p tcp -m multiport --dports 80,8100:8130,8000,443 -m comment --comment "Allow: Webserver" -j ACCEPT
- iptables -A INPUT -p tcp --dport 8101 -m state --state NEW -j ACCEPT
- iptables -A INPUT -p tcp --dport 8102 -m state --state NEW -j ACCEPT
- iptables -A INPUT -p tcp --dport 8103 -m state --state NEW -j ACCEPT
- iptables -A INPUT -p tcp --dport 8104 -m state --state NEW -j ACCEPT
- iptables -A INPUT -p tcp --dport 8105 -m state --state NEW -j ACCEPT
- iptables -A INPUT -p tcp --dport 8106 -m state --state NEW -j ACCEPT
- iptables -A INPUT -p tcp --dport 8107 -m state --state NEW -j ACCEPT
- iptables -A INPUT -p tcp --dport 8108 -m state --state NEW -j ACCEPT
- iptables -A INPUT -p tcp --dport 8109 -m state --state NEW -j ACCEPT
- iptables -A INPUT -p tcp --dport 8110 -m state --state NEW -j ACCEPT
- iptables -A INPUT -p tcp --dport 8111 -m state --state NEW -j ACCEPT
- iptables -A INPUT -p tcp --dport 8112 -m state --state NEW -j ACCEPT
- iptables -A INPUT -p tcp --dport 8113 -m state --state NEW -j ACCEPT
- iptables -A INPUT -p tcp --dport 8114 -m state --state NEW -j ACCEPT
- iptables -A INPUT -p tcp --dport 8115 -m state --state NEW -j ACCEPT
- cd /opt/
- wget --no-check-certificate $sinusbotstart30bots 2>/dev/null -O $sinusbotstart30bots30; chmod +x $sinusbotstart30bots30
- cp -r ts3soundboard/ ts3soundboard2
- cp -r ts3soundboard/ ts3soundboard3
- cp -r ts3soundboard/ ts3soundboard4
- cp -r ts3soundboard/ ts3soundboard5
- cp -r ts3soundboard/ ts3soundboard6
- cp -r ts3soundboard/ ts3soundboard7
- cp -r ts3soundboard/ ts3soundboard8
- cp -r ts3soundboard/ ts3soundboard9
- cp -r ts3soundboard/ ts3soundboard10
- cp -r ts3soundboard/ ts3soundboard11
- cp -r ts3soundboard/ ts3soundboard12
- cp -r ts3soundboard/ ts3soundboard13
- cp -r ts3soundboard/ ts3soundboard14
- cp -r ts3soundboard/ ts3soundboard15
- sed -i -e "s/ListenPort = 8087/ListenPort = 8101/g" "/opt/ts3soundboard/config.ini"
- sed -i -e "s/ListenPort = 8087/ListenPort = 8102/g" "/opt/ts3soundboard2/config.ini"
- sed -i -e "s/ListenPort = 8087/ListenPort = 8103/g" "/opt/ts3soundboard3/config.ini"
- sed -i -e "s/ListenPort = 8087/ListenPort = 8104/g" "/opt/ts3soundboard4/config.ini"
- sed -i -e "s/ListenPort = 8087/ListenPort = 8105/g" "/opt/ts3soundboard5/config.ini"
- sed -i -e "s/ListenPort = 8087/ListenPort = 8106/g" "/opt/ts3soundboard6/config.ini"
- sed -i -e "s/ListenPort = 8087/ListenPort = 8107/g" "/opt/ts3soundboard7/config.ini"
- sed -i -e "s/ListenPort = 8087/ListenPort = 8108/g" "/opt/ts3soundboard8/config.ini"
- sed -i -e "s/ListenPort = 8087/ListenPort = 8109/g" "/opt/ts3soundboard9/config.ini"
- sed -i -e "s/ListenPort = 8087/ListenPort = 8110/g" "/opt/ts3soundboard10/config.ini"
- sed -i -e "s/ListenPort = 8087/ListenPort = 8111/g" "/opt/ts3soundboard11/config.ini"
- sed -i -e "s/ListenPort = 8087/ListenPort = 8112/g" "/opt/ts3soundboard12/config.ini"
- sed -i -e "s/ListenPort = 8087/ListenPort = 8113/g" "/opt/ts3soundboard13/config.ini"
- sed -i -e "s/ListenPort = 8087/ListenPort = 8114/g" "/opt/ts3soundboard14/config.ini"
- sed -i -e "s/ListenPort = 8087/ListenPort = 8115/g" "/opt/ts3soundboard15/config.ini"
- sed -i -e "s/ts3soundboard/ts3soundboard2/g" "/opt/ts3soundboard2/config.ini"
- sed -i -e "s/ts3soundboard/ts3soundboard3/g" "/opt/ts3soundboard3/config.ini"
- sed -i -e "s/ts3soundboard/ts3soundboard4/g" "/opt/ts3soundboard4/config.ini"
- sed -i -e "s/ts3soundboard/ts3soundboard5/g" "/opt/ts3soundboard5/config.ini"
- sed -i -e "s/ts3soundboard/ts3soundboard6/g" "/opt/ts3soundboard6/config.ini"
- sed -i -e "s/ts3soundboard/ts3soundboard7/g" "/opt/ts3soundboard7/config.ini"
- sed -i -e "s/ts3soundboard/ts3soundboard8/g" "/opt/ts3soundboard8/config.ini"
- sed -i -e "s/ts3soundboard/ts3soundboard9/g" "/opt/ts3soundboard9/config.ini"
- sed -i -e "s/ts3soundboard/ts3soundboard10/g" "/opt/ts3soundboard10/config.ini"
- sed -i -e "s/ts3soundboard/ts3soundboard11/g" "/opt/ts3soundboard11/config.ini"
- sed -i -e "s/ts3soundboard/ts3soundboard12/g" "/opt/ts3soundboard12/config.ini"
- sed -i -e "s/ts3soundboard/ts3soundboard13/g" "/opt/ts3soundboard13/config.ini"
- sed -i -e "s/ts3soundboard/ts3soundboard14/g" "/opt/ts3soundboard14/config.ini"
- sed -i -e "s/ts3soundboard/ts3soundboard15/g" "/opt/ts3soundboard15/config.ini"
- echo -e "$COL_GREEN SinusBots created done ... $COL_RESET"
- echo ""
- }
- ##### LAUNCH SINUSBOT 1 INSTANCE #####
- set_launch_sinusbot_1instance(){
- echo -e "$COL_GREEN $COL_YELLOW 6) Launch the SinusBot $COL_RESET $COL_GREEN $COL_RESET"
- echo -e "$COL_RED WARNING : Change the password immediately ! $COL_RESET"
- chown -R sinusbot:sinusbot /opt/ 2>/dev/null
- sleep 1
- cd /opt/ts3soundboard/
- su sinusbot -c "screen -A -m -d -S sinusbot1 ./sinusbot --pwreset foobar"
- sleep 3
- echo -e "$COL_GREEN The SinusBot is online ... $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8101$COL_GREEN $COL_RESET"
- echo -e "$COL_YELLOW Login: admin and Pass: foobar $COL_RESET-$COL_RED WARNING change the password ! $COL_RESET"
- echo -e "$COL_GREEN It's over ! Join our community at$COL_RED R4P3.NET $COL_GREEN $COL_RESET"
- echo ""
- }
- ##### LAUNCH SINUSBOT 2 INSTANCES #####
- set_launch_sinusbot_2instances(){
- echo -e "$COL_GREEN $COL_YELLOW 6) Launch the SinusBots $COL_RESET $COL_GREEN $COL_RESET"
- echo -e "$COL_RED WARNING : Change the password immediately ! $COL_RESET"
- chown -R sinusbot:sinusbot /opt/ 2>/dev/null
- sleep 1
- cd /opt/ts3soundboard/
- su sinusbot -c "screen -A -m -d -S sinusbot1 ./sinusbot --pwreset foobar"
- sleep 3
- cd /opt/ts3soundboard2/
- su sinusbot -c "screen -A -m -d -S sinusbot2 ./sinusbot --pwreset foobar"
- sleep 3
- echo -e "$COL_GREEN The SinusBots are online ... $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8101 $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8102 $COL_RESET"
- echo -e "$COL_YELLOW Login: admin and Pass: foobar $COL_RESET-$COL_RED WARNING change the password ! $COL_RESET"
- echo -e "$COL_GREEN It's over ! Join our community at$COL_RED R4P3.NET $COL_GREEN $COL_RESET"
- echo ""
- }
- ##### LAUNCH SINUSBOT 3 INSTANCES #####
- set_launch_sinusbot_3instances(){
- echo -e "$COL_GREEN $COL_YELLOW 6) Launch the SinusBots $COL_RESET $COL_GREEN $COL_RESET"
- echo -e "$COL_RED WARNING : Change the password immediately ! $COL_RESET"
- chown -R sinusbot:sinusbot /opt/ 2>/dev/null
- sleep 1
- cd /opt/ts3soundboard/
- su sinusbot -c "screen -A -m -d -S sinusbot1 ./sinusbot --pwreset foobar"
- sleep 3
- cd /opt/ts3soundboard2/
- su sinusbot -c "screen -A -m -d -S sinusbot2 ./sinusbot --pwreset foobar"
- sleep 3
- cd /opt/ts3soundboard3/
- su sinusbot -c "screen -A -m -d -S sinusbot3 ./sinusbot --pwreset foobar"
- sleep 3
- echo -e "$COL_GREEN The SinusBots are online ... $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8101 $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8102 $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8103 $COL_RESET"
- echo -e "$COL_YELLOW Login: admin and Pass: foobar $COL_RESET-$COL_RED WARNING change the password ! $COL_RESET"
- echo -e "$COL_GREEN It's over ! Join our community at$COL_RED R4P3.NET $COL_GREEN $COL_RESET"
- echo ""
- }
- ##### LAUNCH SINUSBOT 5 INSTANCES #####
- set_launch_sinusbot_5instances(){
- echo -e "$COL_GREEN $COL_YELLOW 6) Launch the SinusBots $COL_RESET $COL_GREEN $COL_RESET"
- echo -e "$COL_RED WARNING : Change the password immediately ! $COL_RESET"
- chown -R sinusbot:sinusbot /opt/ 2>/dev/null
- sleep 1
- cd /opt/ts3soundboard/
- su sinusbot -c "screen -A -m -d -S sinusbot1 ./sinusbot --pwreset foobar"
- sleep 3
- cd /opt/ts3soundboard2/
- su sinusbot -c "screen -A -m -d -S sinusbot2 ./sinusbot --pwreset foobar"
- sleep 3
- cd /opt/ts3soundboard3/
- su sinusbot -c "screen -A -m -d -S sinusbot3 ./sinusbot --pwreset foobar"
- sleep 3
- cd /opt/ts3soundboard4/
- su sinusbot -c "screen -A -m -d -S sinusbot4 ./sinusbot --pwreset foobar"
- sleep 3
- cd /opt/ts3soundboard5/
- su sinusbot -c "screen -A -m -d -S sinusbot5 ./sinusbot --pwreset foobar"
- sleep 3
- echo -e "$COL_GREEN The SinusBots are online ... $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8101 $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8102 $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8103 $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8104 $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8105 $COL_RESET"
- echo -e "$COL_YELLOW Login: admin and Pass: foobar $COL_RESET-$COL_RED WARNING change the password ! $COL_RESET"
- echo -e "$COL_GREEN It's over ! Join our community at$COL_RED R4P3.NET $COL_GREEN $COL_RESET"
- echo ""
- }
- set_launch_sinusbot_15instances(){
- echo -e "$COL_GREEN $COL_YELLOW 6) Launch the SinusBots $COL_RESET $COL_GREEN $COL_RESET"
- echo -e "$COL_RED WARNING : Change the password immediately ! $COL_RESET"
- chown -R sinusbot:sinusbot /opt/ 2>/dev/null
- sleep 1
- cd /opt/ts3soundboard/
- su sinusbot -c "screen -A -m -d -S sinusbot1 ./sinusbot --pwreset foobar"
- sleep 3
- cd /opt/ts3soundboard2/
- su sinusbot -c "screen -A -m -d -S sinusbot2 ./sinusbot --pwreset foobar"
- sleep 3
- cd /opt/ts3soundboard3/
- su sinusbot -c "screen -A -m -d -S sinusbot3 ./sinusbot --pwreset foobar"
- sleep 3
- cd /opt/ts3soundboard4/
- su sinusbot -c "screen -A -m -d -S sinusbot4 ./sinusbot --pwreset foobar"
- sleep 3
- cd /opt/ts3soundboard5/
- su sinusbot -c "screen -A -m -d -S sinusbot5 ./sinusbot --pwreset foobar"
- sleep 3
- cd /opt/ts3soundboard6/
- su sinusbot -c "screen -A -m -d -S sinusbot6 ./sinusbot --pwreset foobar"
- sleep 3
- cd /opt/ts3soundboard7/
- su sinusbot -c "screen -A -m -d -S sinusbot7 ./sinusbot --pwreset foobar"
- sleep 3
- cd /opt/ts3soundboard8/
- su sinusbot -c "screen -A -m -d -S sinusbot8 ./sinusbot --pwreset foobar"
- sleep 3
- cd /opt/ts3soundboard9/
- su sinusbot -c "screen -A -m -d -S sinusbot9 ./sinusbot --pwreset foobar"
- sleep 3
- cd /opt/ts3soundboard10/
- su sinusbot -c "screen -A -m -d -S sinusbot10 ./sinusbot --pwreset foobar"
- sleep 3
- cd /opt/ts3soundboard11/
- su sinusbot -c "screen -A -m -d -S sinusbot11 ./sinusbot --pwreset foobar"
- sleep 3
- cd /opt/ts3soundboard12/
- su sinusbot -c "screen -A -m -d -S sinusbot12 ./sinusbot --pwreset foobar"
- sleep 3
- cd /opt/ts3soundboard13/
- su sinusbot -c "screen -A -m -d -S sinusbot13 ./sinusbot --pwreset foobar"
- sleep 3
- cd /opt/ts3soundboard14/
- su sinusbot -c "screen -A -m -d -S sinusbot14 ./sinusbot --pwreset foobar"
- sleep 3
- cd /opt/ts3soundboard15/
- su sinusbot -c "screen -A -m -d -S sinusbot15 ./sinusbot --pwreset foobar"
- sleep 3
- echo -e "$COL_GREEN The SinusBots are online ... $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET Ce que ve as porta? nAO VAI VER 1!!!!@ TOMA A RANGE 8101 - 8115 $COL_RESET"
- echo -e "$COL_YELLOW Login: admin and Pass: foobar $COL_RESET-$COL_RED WARNING change the password ! $COL_RESET"
- echo -e "$COL_GREEN It's over ! Join our community at$COL_RED R4P3.NET $COL_GREEN $COL_RESET"
- echo ""
- }
- ##### UNINSTALL SCRIPT #####
- set_uninstall(){
- clear
- echo -e "$COL_GREEN######################################################### $COL_RESET"
- echo -e "$COL_GREEN# $COL_RED $COL_GREEN Undo all changes made by the script # $COL_RESET"
- echo -e "$COL_GREEN######################################################### $COL_RESET"
- echo -e "$COL_GREEN# $COL_RED ARE YOU SURE ? $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN# $COL_RED Y)$COL_GREEN Yes # $COL_RESET"
- echo -e "$COL_GREEN# $COL_RED N)$COL_GREEN No # $COL_RESET"
- echo -e "$COL_GREEN# $COL_RED Q)$COL_GREEN Quit # $COL_RESET"
- echo -e "$COL_GREEN######################################################### "
- echo -e "Answer: $COL_RESET"
- read answer
- case $answer in
- "y" | "Y")
- cd /opt/
- su sinusbot -c "screen -X -S sinusbot1 quit"
- su sinusbot -c "screen -X -S sinusbot2 quit"
- su sinusbot -c "screen -X -S sinusbot3 quit"
- su sinusbot -c "screen -X -S sinusbot4 quit"
- su sinusbot -c "screen -X -S sinusbot5 quit"
- su root -c "pkill screen"
- rm -R ts3soundboard/ ts3soundboard2/ ts3soundboard3/ ts3soundboard4/ ts3soundboard5/ 2>/dev/null
- rm -R 2_sinusbot.sh.x 4_sinusbots.sh.x 6_sinusbots.sh.x 10_sinusbots.sh.x 2>/dev/null
- rm -R /etc/youtube-dl.conf 2>/dev/null
- clear
- cd /etc/init.d/
- update-rc.d -f sinusbot_aio_autostart remove
- rm -R sinusbot_aio_autostart 2>/dev/null
- clear
- mv /etc/apt/sources.list_temporary /etc/apt/sources.list
- grep -v '.*hosts.*' /etc/hosts_temporary > /etc/hosts
- sudo apt-get -y remove youtube-dl > /dev/null
- sudo apt-get -y remove --auto-remove youtube-dl > /dev/null
- sudo apt-get -y purge youtube-dl > /dev/null
- sudo apt-get -y purge --auto-remove youtube-dl > /dev/null
- userdel sinusbot
- apt-get purge x11vnc xinit xvfb libxcursor1 ca-certificates bzip2 libglib2.0-0 sudo htop screen curl -y > /dev/null
- apt-get autoremove -y > /dev/null
- apt-get autoclean -y > /dev/null
- echo -e "$COL_GREEN All was been deleted. We hope to see you back one time on$COL_RED r4p3.net $COL_RESET"
- rm -- "$0"
- echo ""
- exit
- ;;
- "n" | "N")
- echo -e "$COL_GREEN Uninstall has been canceled. $COL_RESET"
- echo ""
- restart_script
- ;;
- "q" | "Q")
- echo -e "$COL_GREEN Uninstall has been canceled. $COL_RESET"
- echo -e "$COL_GREEN Goodbye and see you again on$COL_RED R4P3.net $COL_RESET"
- echo ""
- exit
- ;;
- *)
- printf "${COL_RED}Bad Choice. Try Again !\n${NC}"
- read -n 1
- clear
- set_uninstall
- ;;
- esac
- }
- ######## AUTO START #######
- set_auto_start(){
- clear
- echo -e "$COL_GREEN######################################################### $COL_RESET"
- echo -e "$COL_GREEN# $COL_GREEN AutoStart Script / Start Stop Restart # $COL_RESET"
- echo -e "$COL_GREEN######################################################### $COL_RESET"
- echo -e "$COL_GREEN# $COL_RED ARE YOU SURE ? $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN# $COL_RED Y)$COL_GREEN Yes # $COL_RESET"
- echo -e "$COL_GREEN# $COL_RED N)$COL_GREEN No # $COL_RESET"
- echo -e "$COL_GREEN# $COL_RED Q)$COL_GREEN Quit # $COL_RESET"
- echo -e "$COL_GREEN######################################################### "
- echo -e "Answer: $COL_RESET"
- read answer
- case $answer in
- "y" | "Y")
- cd /etc/init.d/
- wget --no-check-certificate $sinusbotautostart 2>/dev/null -O sinusbot_aio_autostart; chmod 0755 sinusbot_aio_autostart
- update-rc.d sinusbot_aio_autostart defaults
- echo -e "$COL_GREEN AutoStart Script installed.\nGoodbye and see you again on$COL_RED R4P3.net $COL_RESET"
- echo ""
- ;;
- "n" | "N")
- echo -e "$COL_GREEN AutoStart Script has been canceled. $COL_RESET"
- echo ""
- restart_script
- ;;
- "q" | "Q")
- echo -e "$COL_GREEN AutoStart Script has been canceled. $COL_RESET"
- echo -e "$COL_GREEN Goodbye and see you again on$COL_RED R4P3.net $COL_RESET"
- echo ""
- exit
- ;;
- *)
- printf "${COL_RED}Bad Choice. Try Again !\n${NC}"
- read -n 1
- clear
- set_auto_start
- ;;
- esac
- }
- ###### UPDATE SCRIPT ######
- set_update(){
- clear
- echo -e "$COL_GREEN######################################################### $COL_RESET"
- echo -e "$COL_GREEN# $COL_GREEN Update SinusBots ! # $COL_RESET"
- echo -e "$COL_GREEN# $COL_YELLOW SinusBot v$scriptsinusbotversion $COL_RESET $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN# $COL_YELLOW TeamSpeak 3 Client v$teamspeakclientversion $COL_RESET $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN# $COL_YELLOW With various Scripts, Languages and Themes $COL_RESET $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN######################################################### $COL_RESET"
- echo -e "$COL_GREEN# $COL_RED ##### PLEASE MAKE YOUR CHOICE ! ##### $COL_RESET $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN# $COL_CYAN WHAT DO YOU HAVE INSTALL PREVIOUSLY ? $COL_RESET $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN# $COL_RED 1)$COL_GREEN 2 SinusBots with 1 instance # $COL_RESET"
- echo -e "$COL_GREEN# $COL_RED 2)$COL_GREEN 4 SinusBots with 2 instances # $COL_RESET"
- echo -e "$COL_GREEN# $COL_RED 3)$COL_GREEN 6 SinusBots with 3 instances # $COL_RESET"
- echo -e "$COL_GREEN# $COL_RED 4)$COL_GREEN 10 SinusBots with 5 instances # $COL_RESET"
- echo -e "$COL_GREEN# $COL_RED 5)$COL_GREEN 20 SinusBots with 10 instances # $COL_RESET"
- echo -e "$COL_GREEN# $COL_RED 6)$COL_GREEN 30 SinusBots with 15 instances # $COL_RESET"
- echo -e "$COL_GREEN# $COL_RED 7)$COL_GREEN 50 SinusBots with 25 instances # $COL_RESET"
- echo -e "$COL_GREEN# $COL_RED Y)$COL_GREEN YouTube download update and upgrade # $COL_RESET"
- echo -e "$COL_GREEN# $COL_RED Q)$COL_GREEN Quit # $COL_RESET"
- echo -e "$COL_GREEN######################################################### "
- echo -e "Answer: $COL_RESET"
- read answer
- case $answer in
- "1")
- set_stop_all_instances
- set_update_sinusbot_1instance
- set_update_ts3client_1instance
- set_launch_sinusbot_update_1instance
- ;;
- "2")
- set_stop_all_instances
- set_update_sinusbot_2instances
- set_update_ts3client_2instances
- set_launch_sinusbot_update_2instances
- ;;
- "3")
- set_stop_all_instances
- set_update_sinusbot_3instances
- set_update_ts3client_3instances
- set_launch_sinusbot_update_3instances
- ;;
- "4")
- set_stop_all_instances
- set_update_sinusbot_5instances
- set_update_ts3client_5instances
- set_launch_sinusbot_update_5instances
- ;;
- "5")
- set_premium
- ;;
- "6")
- set_premium
- ;;
- "7")
- set_premium
- ;;
- "y" | "Y" )
- set_youtube_install
- ;;
- "q" | "Q")
- echo -e "$COL_GREEN Update has been canceled. $COL_RESET"
- echo -e "$COL_GREEN Goodbye and see you again on$COL_RED R4P3.net $COL_RESET"
- echo ""
- exit
- ;;
- *)
- printf "${COL_RED}Bad Choice. Try Again !\n${NC}"
- read -n 1
- clear
- set_update
- ;;
- esac
- }
- ##### STOP ALL INSTANCES #####
- set_stop_all_instances(){
- echo -e "$COL_GREEN $COL_YELLOW 1) Stoping all instances of SinusBots $COL_RESET $COL_GREEN $COL_RESET"
- sleep 1
- cd /opt/
- su sinusbot -c "screen -X -S sinusbot1 quit"
- su sinusbot -c "screen -X -S sinusbot2 quit"
- su sinusbot -c "screen -X -S sinusbot3 quit"
- su sinusbot -c "screen -X -S sinusbot4 quit"
- su sinusbot -c "screen -X -S sinusbot5 quit"
- su root -c "pkill screen"
- echo -e "$COL_GREEN All instances of SinusBots are stoped ... $COL_RESET"
- echo ""
- }
- ##### UPDATE SINUSBOT 1 INSTANCE #####
- set_update_sinusbot_1instance(){
- echo -e "$COL_GREEN $COL_YELLOW 2) Updating SinusBot to v$scriptsinusbotversion $COL_RESET $COL_GREEN $COL_RESET"
- cd /opt/ts3soundboard
- wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
- tar -xjf $sinusbotlastversion2
- rm -R $sinusbotlastversion2
- cp plugin/libsoundbot_plugin.so /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/plugins
- cd /opt/
- rm -R $sinusbotstart2bots2
- wget --no-check-certificate $sinusbotstart2bots 2>/dev/null -O $sinusbotstart2bots2; chmod +x $sinusbotstart2bots2
- echo -e "$COL_GREEN Update SinusBot v$scriptsinusbotversion done ... $COL_RESET"
- echo ""
- }
- ##### UPDATE SINUSBOT 2 INSTANCES #####
- set_update_sinusbot_2instances(){
- echo -e "$COL_GREEN $COL_YELLOW 2) Updating SinusBots to v$scriptsinusbotversion $COL_RESET $COL_GREEN $COL_RESET"
- cd /opt/ts3soundboard
- wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
- tar -xjf $sinusbotlastversion2
- rm -R $sinusbotlastversion2
- cp plugin/libsoundbot_plugin.so /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/plugins
- sleep 1
- cd /opt/ts3soundboard2
- wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
- tar -xjf $sinusbotlastversion2
- rm -R $sinusbotlastversion2
- cp plugin/libsoundbot_plugin.so /opt/ts3soundboard2/TeamSpeak3-Client-linux_amd64/plugins
- cd /opt/
- rm -R $sinusbotstart4bots4
- wget --no-check-certificate $sinusbotstart4bots 2>/dev/null -O $sinusbotstart4bots4; chmod +x $sinusbotstart4bots4
- echo -e "$COL_GREEN Update SinusBots v$scriptsinusbotversion done ... $COL_RESET"
- echo ""
- }
- ##### UPDATE SINUSBOT 3 INSTANCES #####
- set_update_sinusbot_3instances(){
- echo -e "$COL_GREEN $COL_YELLOW 2) Updating SinusBots to v$scriptsinusbotversion $COL_RESET $COL_GREEN $COL_RESET"
- cd /opt/ts3soundboard
- wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
- tar -xjf $sinusbotlastversion2
- rm -R $sinusbotlastversion2
- cp plugin/libsoundbot_plugin.so /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/plugins
- sleep 1
- cd /opt/ts3soundboard2
- wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
- tar -xjf $sinusbotlastversion2
- rm -R $sinusbotlastversion2
- cp plugin/libsoundbot_plugin.so /opt/ts3soundboard2/TeamSpeak3-Client-linux_amd64/plugins
- cd /opt/
- sleep 1
- cd /opt/ts3soundboard3
- wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
- tar -xjf $sinusbotlastversion2
- rm -R $sinusbotlastversion2
- cp plugin/libsoundbot_plugin.so /opt/ts3soundboard3/TeamSpeak3-Client-linux_amd64/plugins
- cd /opt/
- rm -R $sinusbotstart6bots6
- wget --no-check-certificate $sinusbotstart6bots 2>/dev/null -O $sinusbotstart6bots6; chmod +x $sinusbotstart6bots6
- echo -e "$COL_GREEN Update SinusBots v$scriptsinusbotversion done ... $COL_RESET"
- echo ""
- }
- ##### UPDATE SINUSBOT 5 INSTANCES #####
- set_update_sinusbot_5instances(){
- echo -e "$COL_GREEN $COL_YELLOW 2) Updating SinusBots to v$scriptsinusbotversion $COL_RESET $COL_GREEN $COL_RESET"
- cd /opt/ts3soundboard
- wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
- tar -xjf $sinusbotlastversion2
- rm -R $sinusbotlastversion2
- cp plugin/libsoundbot_plugin.so /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/plugins
- sleep 1
- cd /opt/ts3soundboard2
- wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
- tar -xjf $sinusbotlastversion2
- rm -R $sinusbotlastversion2
- cp plugin/libsoundbot_plugin.so /opt/ts3soundboard2/TeamSpeak3-Client-linux_amd64/plugins
- cd /opt/
- sleep 1
- cd /opt/ts3soundboard3
- wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
- tar -xjf $sinusbotlastversion2
- rm -R $sinusbotlastversion2
- cp plugin/libsoundbot_plugin.so /opt/ts3soundboard3/TeamSpeak3-Client-linux_amd64/plugins
- cd /opt/
- sleep 1
- cd /opt/ts3soundboard4
- wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
- tar -xjf $sinusbotlastversion2
- rm -R $sinusbotlastversion2
- cp plugin/libsoundbot_plugin.so /opt/ts3soundboard4/TeamSpeak3-Client-linux_amd64/plugins
- cd /opt/
- sleep 1
- cd /opt/ts3soundboard5
- wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
- tar -xjf $sinusbotlastversion2
- rm -R $sinusbotlastversion2
- cp plugin/libsoundbot_plugin.so /opt/ts3soundboard5/TeamSpeak3-Client-linux_amd64/plugins
- cd /opt/
- rm -R $sinusbotstart10bots10
- wget --no-check-certificate $sinusbotstart10bots 2>/dev/null -O $sinusbotstart10bots10; chmod +x $sinusbotstart10bots10
- echo -e "$COL_GREEN Update SinusBots v$scriptsinusbotversion done ... $COL_RESET"
- echo ""
- }
- ##### UPDATE TEAMSPEAK 3 CLIENT 1 INSTANCE #####
- set_update_ts3client_1instance(){
- echo -e "$COL_GREEN $COL_YELLOW 3) Updating TeamSpeak 3 Client v$teamspeakclientversion $COL_RESET $COL_GREEN $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET Do following: Press$COL_GREEN ENTER$COL_RESET then press$COL_GREEN q$COL_RESET $COL_GREEN $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET after that press$COL_GREEN y$COL_RESET and accept it with$COL_GREEN ENTER$COL_RESET $COL_GREEN $COL_RESET"
- cd /opt/ts3soundboard
- wget $ts3clientversion
- chmod 0755 $ts3clientversion2
- su root -c "./$ts3clientversion2"
- rm -R $ts3clientversion2
- echo -e "$COL_GREEN Update TeamSpeak 3 Client v$teamspeakclientversion done ... $COL_RESET"
- echo ""
- }
- ##### UPDATE TEAMSPEAK 3 CLIENT 2 INSTANCES #####
- set_update_ts3client_2instances(){
- echo -e "$COL_GREEN $COL_YELLOW 3) Updating TeamSpeak 3 Client v$teamspeakclientversion $COL_RESET $COL_GREEN $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET Do following: Press$COL_GREEN ENTER$COL_RESET then press$COL_GREEN q$COL_RESET $COL_GREEN $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET after that press$COL_GREEN y$COL_RESET and accept it with$COL_GREEN ENTER$COL_RESET $COL_GREEN $COL_RESET"
- cd /opt/ts3soundboard
- wget $ts3clientversion
- chmod 0755 $ts3clientversion2
- su root -c "./$ts3clientversion2"
- rm -R $ts3clientversion2
- sleep 1
- cd /opt/ts3soundboard2
- wget $ts3clientversion
- chmod 0755 $ts3clientversion2
- su root -c "./$ts3clientversion2"
- rm -R $ts3clientversion2
- echo -e "$COL_GREEN Update TeamSpeak 3 Client v$teamspeakclientversion done ... $COL_RESET"
- echo ""
- }
- ##### UPDATE TEAMSPEAK 3 CLIENT 3 INSTANCES #####
- set_update_ts3client_3instances(){
- echo -e "$COL_GREEN $COL_YELLOW 3) Updating TeamSpeak 3 Client v$teamspeakclientversion $COL_RESET $COL_GREEN $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET Do following: Press$COL_GREEN ENTER$COL_RESET then press$COL_GREEN q$COL_RESET $COL_GREEN $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET after that press$COL_GREEN y$COL_RESET and accept it with$COL_GREEN ENTER$COL_RESET $COL_GREEN $COL_RESET"
- cd /opt/ts3soundboard
- wget $ts3clientversion
- chmod 0755 $ts3clientversion2
- su root -c "./$ts3clientversion2"
- rm -R $ts3clientversion2
- sleep 1
- cd /opt/ts3soundboard2
- wget $ts3clientversion
- chmod 0755 $ts3clientversion2
- su root -c "./$ts3clientversion2"
- rm -R $ts3clientversion2
- sleep 1
- cd /opt/ts3soundboard3
- wget $ts3clientversion
- chmod 0755 $ts3clientversion2
- su root -c "./$ts3clientversion2"
- rm -R $ts3clientversion2
- echo -e "$COL_GREEN Update TeamSpeak 3 Client v$teamspeakclientversion done ... $COL_RESET"
- echo ""
- }
- ##### UPDATE TEAMSPEAK 3 CLIENT 5 INSTANCES #####
- set_update_ts3client_5instances(){
- echo -e "$COL_GREEN $COL_YELLOW 3) Updating TeamSpeak 3 Client v$teamspeakclientversion $COL_RESET $COL_GREEN $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET Do following: Press$COL_GREEN ENTER$COL_RESET then press$COL_GREEN q$COL_RESET $COL_GREEN $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET after that press$COL_GREEN y$COL_RESET and accept it with$COL_GREEN ENTER$COL_RESET $COL_GREEN $COL_RESET"
- cd /opt/ts3soundboard
- wget $ts3clientversion
- chmod 0755 $ts3clientversion2
- su root -c "./$ts3clientversion2"
- rm -R $ts3clientversion2
- sleep 1
- cd /opt/ts3soundboard2
- wget $ts3clientversion
- chmod 0755 $ts3clientversion2
- su root -c "./$ts3clientversion2"
- rm -R $ts3clientversion2
- sleep 1
- cd /opt/ts3soundboard3
- wget $ts3clientversion
- chmod 0755 $ts3clientversion2
- su root -c "./$ts3clientversion2"
- rm -R $ts3clientversion2
- sleep 1
- cd /opt/ts3soundboard4
- wget $ts3clientversion
- chmod 0755 $ts3clientversion2
- su root -c "./$ts3clientversion2"
- rm -R $ts3clientversion2
- sleep 1
- cd /opt/ts3soundboard5
- wget $ts3clientversion
- chmod 0755 $ts3clientversion2
- su root -c "./$ts3clientversion2"
- rm -R $ts3clientversion2
- echo -e "$COL_GREEN Update TeamSpeak 3 Client v$teamspeakclientversion done ... $COL_RESET"
- echo ""
- }
- ##### LAUNCH SINUSBOT UPDATE 1 INSTANCE #####
- set_launch_sinusbot_update_1instance(){
- echo -e "$COL_GREEN $COL_YELLOW 6) Launch the SinusBot $COL_RESET $COL_GREEN $COL_RESET"
- echo -e "$COL_RED WARNING : Change the password immediately ! $COL_RESET"
- chown -R sinusbot:sinusbot /opt/ 2>/dev/null
- sleep 1
- cd /opt/ts3soundboard/
- su sinusbot -c "screen -A -m -d -S sinusbot1 ./sinusbot --pwreset foobar" sleep 3
- echo -e "$COL_GREEN The SinusBot is online ... $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8101$COL_GREEN $COL_RESET"
- echo -e "$COL_YELLOW Login: admin and Pass: only you know ! $COL_RESET"
- echo -e "$COL_GREEN It's over ! Join our community at$COL_RED R4P3.NET $COL_GREEN $COL_RESET"
- echo ""
- }
- ##### LAUNCH SINUSBOT UPDATE 2 INSTANCES #####
- set_launch_sinusbot_update_2instances(){
- echo -e "$COL_GREEN $COL_YELLOW 6) Launch the SinusBots $COL_RESET $COL_GREEN $COL_RESET"
- echo -e "$COL_RED WARNING : Change the password immediately ! $COL_RESET"
- chown -R sinusbot:sinusbot /opt/ 2>/dev/null
- sleep 1
- cd /opt/ts3soundboard/
- su sinusbot -c "screen -A -m -d -S sinusbot1 ./sinusbot --pwreset foobar" sleep 3
- cd /opt/ts3soundboard2/
- su sinusbot -c "screen -A -m -d -S sinusbot2 ./sinusbot --pwreset foobar" sleep 3
- echo -e "$COL_GREEN The SinusBots are online ... $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8101 $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8102 $COL_RESET"
- echo -e "$COL_YELLOW Login: admin and Pass: only you know ! $COL_RESET"
- echo -e "$COL_GREEN It's over ! Join our community at$COL_RED R4P3.NET $COL_GREEN $COL_RESET"
- echo ""
- }
- ##### LAUNCH SINUSBOT UPDATE 3 INSTANCES #####
- set_launch_sinusbot_update_3instances(){
- echo -e "$COL_GREEN $COL_YELLOW 6) Launch the SinusBots $COL_RESET $COL_GREEN $COL_RESET"
- echo -e "$COL_RED WARNING : Change the password immediately ! $COL_RESET"
- chown -R sinusbot:sinusbot /opt/ 2>/dev/null
- sleep 1
- cd /opt/ts3soundboard/
- su sinusbot -c "screen -A -m -d -S sinusbot1 ./sinusbot --pwreset foobar" sleep 3
- cd /opt/ts3soundboard2/
- su sinusbot -c "screen -A -m -d -S sinusbot2 ./sinusbot --pwreset foobar" sleep 3
- cd /opt/ts3soundboard3/
- su sinusbot -c "screen -A -m -d -S sinusbot3 ./sinusbot --pwreset foobar" sleep 3
- echo -e "$COL_GREEN The SinusBots are online ... $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8101 $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8102 $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8103 $COL_RESET"
- echo -e "$COL_YELLOW Login: admin and Pass: only you know ! $COL_RESET"
- echo -e "$COL_GREEN It's over ! Join our community at$COL_RED R4P3.NET $COL_GREEN $COL_RESET"
- echo ""
- }
- ##### LAUNCH SINUSBOT UPDATE 5 INSTANCES #####
- set_launch_sinusbot_update_5instances(){
- echo -e "$COL_GREEN $COL_YELLOW 6) Launch the SinusBots $COL_RESET $COL_GREEN $COL_RESET"
- echo -e "$COL_RED WARNING : Change the password immediately ! $COL_RESET"
- chown -R sinusbot:sinusbot /opt/ 2>/dev/null
- sleep 1
- cd /opt/ts3soundboard/
- su sinusbot -c "screen -A -m -d -S sinusbot1 ./sinusbot --pwreset foobar" sleep 3
- cd /opt/ts3soundboard2/
- su sinusbot -c "screen -A -m -d -S sinusbot2 ./sinusbot --pwreset foobar" sleep 3
- cd /opt/ts3soundboard3/
- su sinusbot -c "screen -A -m -d -S sinusbot3 ./sinusbot --pwreset foobar" sleep 3
- cd /opt/ts3soundboard4/
- su sinusbot -c "screen -A -m -d -S sinusbot4 ./sinusbot --pwreset foobar" sleep 3
- cd /opt/ts3soundboard5/
- su sinusbot -c "screen -A -m -d -S sinusbot5 ./sinusbot --pwreset foobar" sleep 10
- echo -e "$COL_GREEN The SinusBots are online ... $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8101 $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8102 $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8103 $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8104 $COL_RESET"
- echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8105 $COL_RESET"
- echo -e "$COL_YELLOW Login: admin and Pass: only you know ! $COL_RESET"
- echo -e "$COL_GREEN It's over ! Join our community at$COL_RED R4P3.NET $COL_GREEN $COL_RESET"
- echo ""
- }
- ######## CHANGELOG ########
- set_changelog(){
- clear
- echo -e "$COL_GREEN######################################################### $COL_RESET"
- echo -e "$COL_GREEN# $COL_GREEN Changelog # $COL_RESET"
- echo -e "$COL_GREEN# Last updated on$COL_RED $datescriptversion $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN######################################################### $COL_RESET"
- echo -e "$COL_GREEN# v1.25 - Update$COL_RED SinusBot version 0.9.20-a9b8dc6$COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN# v1.24 - Added security in SinusBot AIO # $COL_RESET"
- echo -e "$COL_GREEN# v1.23 - Updated and Added new SinusBot scripts # $COL_RESET"
- echo -e "$COL_GREEN# v1.22 - Update$COL_RED SinusBot version 0.9.18-8499d2c$COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN# v1.21 - Update$COL_RED SinusBot version 0.9.16-10f0fad$COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN# v1.20 - Updated and Added new SinusBot scripts # $COL_RESET"
- echo -e "$COL_GREEN# v1.19 - Update$COL_RED SinusBot version 0.9.15-b20cc30$COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN# v1.18 - Added get SinusBot AIO Installer PREMIUM # $COL_RESET"
- echo -e "$COL_GREEN# v1.17 - Added Make a donate and Donation Goal # $COL_RESET"
- echo -e "$COL_GREEN# v1.16 - Fixe bugs Updated Scripts # $COL_RESET"
- echo -e "$COL_GREEN# v1.15 - Fixe SinusBot AIO Installer # $COL_RESET"
- echo -e "$COL_GREEN# v1.14 - New hosting with new sources files. # $COL_RESET"
- echo -e "$COL_GREEN# v1.13 - Fixe bugs, Updated and Added new scripts # $COL_RESET"
- echo -e "$COL_GREEN# v1.12 - Updated SinusBot scripts and languages # $COL_RESET"
- echo -e "$COL_GREEN# v1.11 - Added script Auto Checking for Updates # $COL_RESET"
- echo -e "$COL_GREEN# v1.10 - Added options 6; 7; R; U; A; L; C # $COL_RESET"
- echo -e "$COL_GREEN# v1.00 -$COL_RED /!\ Total rewrite of the script /!\ $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN# -$COL_CYAN Added encryption and expiration date $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN######################################################### $COL_RESET"
- echo ""
- restart_script
- }
- ######## DONATION #########
- set_donation(){
- clear
- echo -e "$COL_GREEN######################################################### $COL_RESET"
- echo -e "$COL_GREEN# $COL_GREEN YOUR GIFTS IT'S ME STRENGTH ! # $COL_RESET"
- echo -e "$COL_GREEN# $COL_YELLOW I want to thank all the generous donors who $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN# $COL_YELLOW understand the importance of giving, without $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN# $COL_YELLOW my script that could not exist. $COL_GREEN # $COL_RESET"
- printf "$COL_GREEN######################################################### $COL_RESET\n"
- printf "$COL_GREEN#$COL_YELLOW DONATIONS RECEIVED $COL_RED"; curl $call_donate_received;
- printf " $COL_CYAN DONATION GOAL $COL_RED"; curl $call_donation_goal; printf "$COL_GREEN # $COL_RESET\n"
- echo -e "$COL_GREEN######################################################### $COL_RESET"
- echo -e "$COL_GREEN# $COL_RED HOW TO MAKE A DONATION ? $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN# I agree preferably donations via the famous # $COL_RESET"
- echo -e "$COL_GREEN# $COL_YELLOW Paysafecard secure payment system$COL_GREEN. Of course you # $COL_RESET"
- echo -e "$COL_GREEN# must have a valid bank account to donate. # $COL_RESET"
- echo -e "$COL_GREEN# Most regulars with shopping online using Paysafecard. # $COL_RESET"
- echo -e "$COL_GREEN# For this,$COL_CYAN contact me by E-mail$COL_GREEN and providing me # $COL_RESET"
- echo -e "$COL_GREEN# $COL_MAGENTA the 16-digit code of the amount of your choice ! $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN# -------------------- # $COL_RESET"
- echo -e "$COL_GREEN# $COL_RED Buy Online $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN# 1. Join$COL_YELLOW WKV.com $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN# 2. Buy a Paysafecard$COL_RED in EURO (€) only$COL_GREEN ! # $COL_RESET"
- echo -e "$COL_GREEN# 3. You will receive a 16-digit code by email. # $COL_RESET"
- echo -e "$COL_GREEN# # $COL_RESET"
- echo -e "$COL_GREEN# $COL_RED Buy in Store $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN# 1. Locate a store on paysafecard outlets # $COL_RESET"
- echo -e "$COL_GREEN# $COL_YELLOW paysafecard.com/en-us/buy/find-sales-outlets $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN# 2. See you in: Tobacco, Press House, Video Game Store # $COL_RESET"
- echo -e "$COL_GREEN# 3. Buy a Paysafecard$COL_RED in EURO (€) only$COL_GREEN ! # $COL_RESET"
- echo -e "$COL_GREEN# 4. You will be given a ticket with a 16-digit code. # $COL_RESET"
- echo -e "$COL_GREEN# # $COL_RESET"
- echo -e "$COL_GREEN# $COL_RED Where sent the donate ? $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN# Now you can send me by e-mail the 16-digit code. # $COL_RESET"
- echo -e "$COL_GREEN# $COL_BLUE XECUTIONER.FR@GMAIL.COM $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN# -------------------- # $COL_RESET"
- echo -e "$COL_GREEN# $COL_CYAN OPTIONAL:$COL_RED DONATION IN BITCOIN $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN# $COL_YELLOW You can also make a donation in bitcoin$COL_GREEN. $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN# To do this, contact me by e-mail. # $COL_RESET"
- echo -e "$COL_GREEN######################################################### $COL_RESET"
- echo ""
- restart_script
- }
- ######### PREMIUM #########
- set_premium(){
- clear
- echo -e "$COL_GREEN######################################################### $COL_RESET"
- printf "$COL_GREEN# How to$COL_GREEN Get $COL_RED"P"$COL_BLUE"R""$COL_YELLOW"E""$COL_GREEN"M""$COL_MAGENTA"I""$COL_CYAN"U""$COL_RED"M"
- printf "$COL_GREEN SinusBot AIO Installer$COL_RED $scriptversion$COL_GREEN #$COL_RESET\n"
- echo -e "$COL_GREEN######################################################### $COL_RESET"
- echo -e "$COL_GREEN# For get the$COL_RED PREMIUM version$COL_GREEN of my script. $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN# Please$COL_YELLOW make a donation$COL_GREEN of$COL_RED 25 euro (€)$COL_GREEN. $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN# Once received the donation,$COL_MAGENTA you will receive $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN# by email$COL_MAGENTA your access$COL_GREEN to the$COL_RED PREMIUM version$COL_GREEN ! # $COL_RESET"
- echo -e "$COL_GREEN# # $COL_RESET"
- echo -e "$COL_GREEN# $COL_YELLOW LIST OF ALL ADVANTAGES: $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN# $COL_GREEN No password, no expiration date and all updates ! $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN# $COL_GREEN Possibility to create more bots 20, 30, 50 ... $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN# Therefore,$COL_CYAN VALID FOR LIFETIME$COL_GREEN ! # $COL_RESET"
- echo -e "$COL_GREEN######################################################### $COL_RESET"
- echo -e "$COL_RESET"
- case $answer in
- *)
- printf "${COL_GREEN}Press any key to learn more...\n${NC}"
- read -n 1
- clear
- set_donation
- ;;
- esac
- }
- ######### CREDITS #########
- set_credits(){
- clear
- echo -e "$COL_GREEN######################################################### $COL_RESET"
- echo -e "$COL_GREEN# $COL_GREEN Credits # $COL_RESET"
- echo -e "$COL_GREEN######################################################### $COL_RESET"
- echo -e "$COL_GREEN# $COL_YELLOW SPECIAL THANKS TO $COL_GREEN # $COL_RESET"
- echo -e "$COL_GREEN# - Team$COL_RED SinusBot / Flyth$COL_GREEN for making the SinusBot # $COL_RESET"
- echo -e "$COL_GREEN# -$COL_RED Supervisor$COL_GREEN for assistance of my script # $COL_RESET"
- echo -e "$COL_GREEN# -$COL_RED hASVAN$COL_GREEN for assistance of my script # $COL_RESET"
- echo -e "$COL_GREEN# -$COL_RED Joxi$COL_GREEN for the tutorials in videos # $COL_RESET"
- echo -e "$COL_GREEN# -$COL_RED Sa7er$COL_GREEN for have tried and report the bugs # $COL_RESET"
- echo -e "$COL_GREEN######################################################### $COL_RESET"
- echo ""
- restart_script
- }
- ##### CHECK VERISON SCRIPT #####
- check_version(){
- if [ $check_for_updates -eq 1 ]; then
- printf "$COL_RED Checking for updates... $COL_RESET"
- curl -s -m $timeout --head $call_home/sinusbot_aio_version.php | head -n 1 | grep "HTTP/1.[01] [2].." > /dev/$
- if [ $? = 1 ];
- then printf "${COLOR2}\nUpdate Server is not reachable.\nYou may restart the script to retry.\nPlease check r4p3.net for news if it stays offline.\n${NC}"
- else
- sversion=$(wget $call_home/sinusbot_aio_version.php?version -q -O -)
- if [ $sversion \> $scriptversion ];
- then printf "${COLOR1}\nA new script version is available, downloading it...\n${NC}"
- update_script
- else printf "$COL_YELLOW ...script is up to date !$COL_GREEN$COL_RESET \n${NC}"
- fi
- fi
- fi
- }
- update_script(){
- slink=$(wget $call_home/sinusbot_aio_version.php?link -q -O -)
- wget $slink -q -O sinusbot_aio_installer_$sversion
- chmod +x sinusbot_aio_installer_$sversion
- rm sinusbot_aio_installer_$scriptversion
- ./sinusbot_aio_installer_$sversion
- }
- ##### RESTART SCRIPT #####
- restart_script(){
- printf "${COL_GREEN}Done. Press any key to continue...\n${NC}"
- read -n 1
- clear
- $0
- }
- restart_script2(){
- printf "${COL_RED}Bad Choice. Try Again !\n${NC}"
- read -n 1
- clear
- $0
- }
- restart_script3(){
- printf "${COL_RED}$COL_RED Coming Soon !\n${NC}"
- read -n 1
- clear
- $0
- }
- ##### CREATE USER #####
- set_user(){
- printf "${COLOR1}Choose a user for installation. If the user does not exist, it will be created: ${NC}"
- read answer
- case $answer in
- [rR][oO0][oO0][tT])
- printf "${COLOR1}User ${COLOR2}$answer${COLOR1} is not valid. Aborting...\n${NC}"
- exit 1
- ;;
- [a-zA-Z0-9]*)
- teamspeakuser="$answer"
- if id -u "$sinusbotuser" >/dev/null 2>&1;
- then if [ ! -d /home/$sinusbotuser/ ]
- then printf "${COLOR1}Could not find home directory, creating it..\n${NC}"
- mkdir /home/$sinusbotuser
- chown $sinusbotuser:$sinusbotuser /home/$sinusbotuser
- fi
- else
- printf "${COLOR1}User does not exist. Creating it...\n${NC}"
- adduser $sinusbotuser
- fi
- ;;
- *) printf "${COLOR1}User '$answer' is not valid. Aborting...\n${NC}"
- exit 1
- ;;
- esac
- }
- ##### MENU #####
- show_script_password
- show_SinusBotInstall
- check_version
- show_expires
- show_SinusBotScripts
- show_SinusBotAutoScripts
- case "$main_menu" in
- # Note variable is quoted.
- "0" )
- echo -e "$COL_YELLOW This is a$COL_GREEN Easter Eggs$COL_YELLOW !$COL_RESET"
- echo ""
- restart_script3
- ;;
- "1" )
- set_dependencies
- set_sinusbot_install
- set_ts3_client_install
- set_setting_sinusbot
- set_created_sinusbot_1instance
- set_launch_sinusbot_1instance
- ;;
- "2" )
- set_dependencies
- set_sinusbot_install
- set_ts3_client_install
- set_setting_sinusbot
- set_created_sinusbot_2instances
- set_launch_sinusbot_2instances
- ;;
- "3" )
- set_dependencies
- set_sinusbot_install
- set_ts3_client_install
- set_setting_sinusbot
- set_created_sinusbot_3instances
- set_launch_sinusbot_3instances
- ;;
- "4" )
- set_dependencies
- set_sinusbot_install
- set_ts3_client_install
- set_setting_sinusbot
- set_created_sinusbot_5instances
- set_launch_sinusbot_5instances
- ;;
- "5" )
- set_premium
- ;;
- "6" )
- set_dependencies
- set_sinusbot_install
- set_ts3_client_install
- set_setting_sinusbot
- set_created_sinusbot_15instances
- set_launch_sinusbot_15instances
- ;;
- "7" )
- set_premium
- ;;
- "r" | "R" )
- set_uninstall
- ;;
- "a" | "A" )
- set_auto_start
- ;;
- "u" | "U" )
- set_update
- ;;
- "c" | "C" )
- set_credits
- ;;
- "l" | "L" )
- set_changelog
- ;;
- "d" | "D" )
- set_donation
- ;;
- "p" | "P" )
- set_premium
- ;;
- "q" | "Q" )
- echo -e "$COL_GREEN Goodbye and see you again on$COL_RED R4P3.net $COL_RESET"
- echo ""
- ;;
- * )
- # Default option.
- restart_script2
- ;;
- esac
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement