Advertisement
Seconds

Untitled

Jul 19th, 2017
885
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 64.70 KB | None | 0 0
  1. #!/bin/bash
  2. #SinusBot All In One install script
  3. #Written by: X-Ecutioner for www.r4p3.net
  4. apt-get install curl -y > /dev/null
  5. #Configuration settings. Change those to your needs or leave them as provided for standart use.
  6. timeout="5" #Timeout for update check in s
  7. ESC_SEQ="\x1b["
  8. COL_RESET=$ESC_SEQ"39;49;00m" #reset color
  9. COL_BLACK=$ESC_SEQ"30;11m" #black color
  10. COL_BLACKB=$ESC_SEQ"30;01m" #black color bold
  11. COL_RED=$ESC_SEQ"31;11m" #red color
  12. COL_REDB=$ESC_SEQ"31;01m" #red color bold
  13. COL_GREEN=$ESC_SEQ"32;11m" #green color
  14. COL_GREENB=$ESC_SEQ"32;01m" #green color bold
  15. COL_YELLOW=$ESC_SEQ"33;11m" #yellow color
  16. COL_YELLOWB=$ESC_SEQ"33;01m" #yellow color bold
  17. COL_BLUE=$ESC_SEQ"34;11m" #blue color
  18. COL_BLUEB=$ESC_SEQ"34;01m" #blue color bold
  19. COL_MAGENTA=$ESC_SEQ"35;11m" #magenta color
  20. COL_MAGENTAB=$ESC_SEQ"35;01m" #magenta color bold
  21. COL_CYAN=$ESC_SEQ"36;11m" #cyan color
  22. COL_CYANB=$ESC_SEQ"36;01m" #cyan color bold
  23. COL_WHITE=$ESC_SEQ"37;11m" #white color
  24. COL_WHITEB=$ESC_SEQ"37;01m" #white color bold
  25. NC='\033[0m' #no color
  26. check_for_updates="1" #put 1=YES or 0=NO to check for updates
  27. #Don't change the variables below to make sure the script runs without problems!
  28. #
  29. scriptversion="1.25" #scriptversion
  30. scriptpassword="ruan" #scriptpassword
  31. datescriptversion="12.06.2017" #datescriptversion
  32. scriptsinusbotversion="0.9.20-a9b8dc6" #scriptsinusbotversion
  33. teamspeakclientversion="3.0.19.4" #scriptsinusbotversion
  34. scriptexpiration="03.09.2017" #scriptexpiration
  35.  
  36. call_home="http://www.r4p3.cf" #check for updates
  37. call_donate_received="http://www.r4p3.cf/sinusbot_aio_donate.php?donate_received=" #check for donations received
  38. call_donation_goal="http://www.r4p3.cf/sinusbot_aio_donate.php?donation_goal=" #check for donation goal
  39. 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
  40. ts3clientversion2="TeamSpeak3-Client-linux_amd64-3.0.19.4.run" #source file of teamspeak 3 client
  41. sinusbotlastversion="http://www.r4p3.cf/index.php/s/cUrlhBnK07aQPQp/download" #version of sinusbot
  42. sinusbotlastversion2="sinusbot-0.9.20-a9b8dc6.tar.bz2" #source file of sinusbot
  43. youtubeconf="http://www.r4p3.cf/index.php/s/8VnwAMnHqEYmOpr/download" #YoutubeDl Config
  44. youtubeconf2="youtube-dl.conf" #Name of youtubedl.conf
  45. sinusbotautostart="http://www.r4p3.cf/index.php/s/sdOSlRsTwPS7W35/download" #Autostart script for sinusbots
  46. sinusbotstart2bots="http://www.r4p3.cf/index.php/s/7P7wie3glFtJKo7/download" #Start file of sinusbot
  47. sinusbotstart2bots2="2_sinusbot.sh.x" #Name of start file of sinusbot
  48. sinusbotstart4bots="http://www.r4p3.cf/index.php/s/uUkjAq7AEXc8FSV/download" #Start file of sinusbot
  49. sinusbotstart4bots4="4_sinusbots.sh.x" #Name of start file of sinusbot
  50. sinusbotstart6bots="http://www.r4p3.cf/index.php/s/9ys7rhaVIKrwSHL/download" #Start file of sinusbot
  51. sinusbotstart6bots6="6_sinusbots.sh.x" #Name of start file of sinusbot
  52. sinusbotstart10bots="http://www.r4p3.cf/index.php/s/6N6poKbZtQAij3Y/download" #Start file of sinusbot
  53. sinusbotstart10bots10="10_sinusbots.sh.x" #Name of start file of sinusbot
  54. sinusbotstart20bots="http://www.r4p3.cf/index.php/s/dyWIVDts2n86tHm/download" #Start file of sinusbot
  55. sinusbotstart20bots20="20_sinusbots.sh.x" #Name of start file of sinusbot
  56. sinusbotstart30bots="http://www.r4p3.cf/index.php/s/QLBlHrAyyeLiV4a/download" #Start file of sinusbot
  57. sinusbotstart30bots30="30_sinusbots.sh.x" #Name of start file of sinusbot
  58. sinusbotstart50bots="http://www.r4p3.cf/index.php/s/0b3bj1K6WS7cRlv/download" #Start file of sinusbot
  59. sinusbotstart50bots50="50_sinusbots.sh.x" #Name of start file of sinusbot
  60. ipaddress=`ip route get 8.8.8.8 | awk '{print $NF; exit}'` #Your server IP adress
  61. sinusbotdir="/opt/" #Don't change this!
  62.  
  63. #################################################################################################
  64. ##### MENU SCRIPT PASSWORD #####
  65. clear
  66. show_script_password(){
  67. echo -e "$COL_GREEN######################################################### $COL_RESET"
  68. echo -e "$COL_GREEN# SinusBot Install Script AIO$COL_RED v$scriptversion$COL_GREEN by$COL_RED X-Ecutioner $COL_GREEN # $COL_RESET"
  69. echo -e "$COL_GREEN# Join our community at$COL_RED R4P3.NET $COL_GREEN # $COL_RESET"
  70. echo -e "$COL_GREEN######################################################### $COL_RESET"
  71. echo -e "$COL_GREEN# $COL_RED PLEASE ENTER THE PASSWORD !!! $COL_GREEN # $COL_RESET"
  72. echo -e "$COL_GREEN######################################################### $COL_RESET"
  73. echo -e "Answer: $COL_RESET"
  74. read answer
  75. case $answer in
  76. "$scriptpassword")
  77. printf "$COL_GREEN The Password $COL_YELLOW$answer$COL_GREEN is correct...\n${NC}"
  78. sleep 2
  79. clear
  80. ;;
  81. "q" | "Q")
  82. echo -e "$COL_GREEN Goodbye and see you again on$COL_RED R4P3.net $COL_RESET"
  83. echo ""
  84. exit 1
  85. ;;
  86.  
  87. *)
  88. printf "$COL_GREEN The Password $COL_RED$answer$COL_GREEN is wrong ...\n${NC}"
  89. 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"
  90. 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"
  91. printf "$COL_GREEN license at$COL_BLUE XECUTIONER.FR@GMAIL.COM $COL_RESET\n"
  92. echo ""
  93. exit 1
  94. ;;
  95. esac
  96. }
  97.  
  98. ##### MENU NORMAL #####
  99. show_SinusBotInstall(){
  100. printf "$COL_GREEN######################################################### $COL_RESET\n"
  101. printf "$COL_GREEN# SinusBot Install Script AIO$COL_RED v$scriptversion$COL_GREEN by$COL_RED X-Ecutioner $COL_GREEN # $COL_RESET\n"
  102. printf "$COL_GREEN# Join our community at$COL_RED R4P3.NET $COL_GREEN # $COL_RESET\n"
  103. printf "$COL_GREEN######################################################### $COL_RESET\n"
  104. }
  105. show_expires(){
  106. printf "$COL_GREEN######################################################### $COL_RESET\n"
  107. printf "$COL_GREEN# $COL_RED INFO:$COL_BLUEB This installation script expires on $COL_RESET $COL_GREEN # $COL_RESET\n"
  108. printf "$COL_GREEN# $COL_MAGENTAB $scriptexpiration $COL_RESET $COL_GREEN # $COL_RESET\n"
  109. }
  110. show_SinusBotScripts(){
  111. printf "$COL_GREEN######################################################### $COL_RESET\n"
  112. printf "$COL_GREEN# $COL_YELLOW SinusBot v$scriptsinusbotversion $COL_RESET $COL_GREEN # $COL_RESET\n"
  113. printf "$COL_GREEN# $COL_YELLOW Auto Installation Script $COL_RESET $COL_GREEN # $COL_RESET\n"
  114. printf "$COL_GREEN# $COL_YELLOW With various Scripts, Languages and Themes $COL_RESET $COL_GREEN # $COL_RESET\n"
  115. }
  116. show_SinusBotAutoScripts(){
  117. printf "$COL_GREEN######################################################### $COL_RESET\n"
  118. printf "$COL_GREEN# $COL_RED ##### PLEASE MAKE YOUR CHOICE ! ##### $COL_RESET $COL_GREEN # $COL_RESET\n"
  119. printf "$COL_GREEN# $COL_RED 1)$COL_GREEN 2 SinusBots with 1 instance # $COL_RESET\n"
  120. printf "$COL_GREEN# $COL_RED 2)$COL_GREEN 4 SinusBots with 2 instances # $COL_RESET\n"
  121. printf "$COL_GREEN# $COL_RED 3)$COL_GREEN 6 SinusBots with 3 instances # $COL_RESET\n"
  122. printf "$COL_GREEN# $COL_RED 4)$COL_GREEN 10 SinusBots with 5 instances # $COL_RESET\n"
  123. printf "$COL_GREEN# $COL_RED 5)$COL_GREEN 20 SinusBots with 10 instances # $COL_RESET\n"
  124. printf "$COL_GREEN# $COL_RED 6)$COL_GREEN 30 SinusBots with 15 instances # $COL_RESET\n"
  125. printf "$COL_GREEN# $COL_RED 7)$COL_GREEN 50 SinusBots with 25 instances # $COL_RESET\n"
  126. printf "$COL_GREEN# $COL_RED R)$COL_GREEN Undo all changes made by the script # $COL_RESET\n"
  127. printf "$COL_GREEN# $COL_RED A)$COL_GREEN AutoStart Script # $COL_RESET\n"
  128. printf "$COL_GREEN# $COL_RED U)$COL_GREEN Update SinusBots # $COL_RESET\n"
  129. printf "$COL_GREEN# $COL_RED L)$COL_GREEN Show Changelog # $COL_RESET\n"
  130. printf "$COL_GREEN# $COL_RED C)$COL_GREEN Show Credits # $COL_RESET\n"
  131. printf "$COL_GREEN# $COL_RED D)$COL_GREEN Make a donate to$COL_RED X-Ecutioner$COL_GREEN # $COL_RESET\n"
  132. 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"
  133. printf "$COL_GREEN SinusBot AIO Installer$COL_RED $scriptversion$COL_GREEN #$COL_RESET\n"
  134. printf "$COL_GREEN# $COL_RED Q)$COL_GREEN Quit # $COL_RESET\n"
  135. printf "$COL_GREEN######################################################### $COL_RESET\n"
  136. printf "$COL_GREEN#$COL_YELLOW DONATIONS RECEIVED $COL_RED"; curl $call_donate_received;
  137. printf " $COL_CYAN DONATION GOAL $COL_RED"; curl $call_donation_goal; printf "$COL_GREEN # $COL_RESET\n"
  138. printf "$COL_GREEN#########################################################\n"
  139. printf "Answer: $COL_RESET"
  140. read main_menu
  141. }
  142.  
  143. ###### DEPENDENCIES INSTALLATION #######
  144. set_dependencies(){
  145. sleep 1
  146. echo -e "$COL_GREEN $COL_YELLOW 1) Let's start by installing several dependencies $COL_RESET $COL_GREEN $COL_RESET"
  147. sleep 3
  148. echo -e "$COL_GREEN $COL_RESET $COL_RED WARNING$COL_RESET : Select$COL_GREEN yes$COL_RESET for everything ! $COL_GREEN $COL_RESET"
  149. sleep 5
  150. set_sources_list
  151. sleep 5
  152. apt-get update -y > /dev/null
  153. apt-get upgrade -y > /dev/null
  154. #apt-get -y install -t sid libc6
  155. sleep 5
  156. apt-get install x11vnc xinit xvfb libxcursor1 ca-certificates bzip2 libglib2.0-0 sudo htop screen -y > /dev/null
  157. update-ca-certificates > /dev/null
  158. echo -e "$COL_GREEN Dependencies done ... $COL_RESET"
  159. echo ""
  160. }
  161.  
  162. ##### SET SOURCES LIST #####
  163. set_sources_list(){
  164. grep -v '.*httpredir.*' /etc/apt/sources.list > /etc/apt/sources.list_temporary
  165. echo "" > /etc/apt/sources.list
  166. sed -i '1ideb-src http://ftp.de.debian.org/debian/ jessie-updates main contrib' /etc/apt/sources.list
  167. sed -i '1ideb http://ftp.de.debian.org/debian/ jessie-updates main contrib' /etc/apt/sources.list
  168. sed -i '1i# jessie-updates, previously known as 'volatile'' /etc/apt/sources.list
  169. sed -i '1i#' /etc/apt/sources.list
  170. sed -i '1ideb-src http://security.debian.org/ jessie/updates main contrib' /etc/apt/sources.list
  171. sed -i '1ideb http://security.debian.org/ jessie/updates main contrib' /etc/apt/sources.list
  172. sed -i '1i#' /etc/apt/sources.list
  173. sed -i '1ideb-src http://ftp.de.debian.org/debian/ jessie main' /etc/apt/sources.list
  174. sed -i '1ideb http://ftp.de.debian.org/debian/ jessie main' /etc/apt/sources.list
  175. grep -v '.*hosts.*' /etc/hosts > /etc/hosts_temporary
  176. sed -i '1i127.0.0.1 blacklist.teamspeak.com' /etc/hosts
  177. }
  178.  
  179. ##### SINUSBOT INSTALLATION #####
  180. set_sinusbot_install(){
  181. echo -e "$COL_GREEN $COL_YELLOW 2) Installation of SinusBot v$scriptsinusbotversion $COL_RESET $COL_GREEN $COL_RESET"
  182. sleep 1
  183. /usr/sbin/useradd sinusbot
  184. usermod -s /bin/bash sinusbot
  185. cd /etc/ssh/
  186. sed -i '$aDenyUsers sinusbot' sshd_config
  187. sleep 1
  188. mkdir /opt/ts3soundboard
  189. cd /opt/ts3soundboard
  190. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  191. tar -xjf $sinusbotlastversion2
  192. rm -R $sinusbotlastversion2
  193. cp config.ini.dist config.ini
  194. echo -e "$COL_GREEN SinusBot install done ... $COL_RESET"
  195. echo ""
  196. }
  197.  
  198. ##### TEAMSPEAK 3 CLIENT INSTALLATION #####
  199. set_ts3_client_install(){
  200. echo -e "$COL_GREEN $COL_YELLOW 3) TeamSpeak 3 client installation v$teamspeakclientversion $COL_RESET $COL_GREEN $COL_RESET"
  201. 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"
  202. 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"
  203. wget $ts3clientversion
  204. chmod 0755 $ts3clientversion2
  205. su root -c "./$ts3clientversion2"
  206. echo -e "$COL_GREEN TeamSpeak 3 Client done ... $COL_RESET"
  207. rm -R $ts3clientversion2
  208. echo ""
  209. }
  210.  
  211. ##### YOUTUBE INSTALLATION #####
  212. set_youtube_install(){
  213. sudo apt-get install youtube-dl -y > /dev/null
  214. sudo wget https://yt-dl.org/latest/youtube-dl 2>/dev/null -O /usr/local/bin/youtube-dl
  215. sudo chmod a+x /usr/local/bin/youtube-dl
  216. hash -r
  217. sudo youtube-dl --update > /dev/null
  218. #sudo youtube-dl "ytsearch:restart" > /dev/null
  219. echo -e "$COL_GREEN YouTube download done ... $COL_RESET"
  220. echo ""
  221. }
  222.  
  223. ##### SETTING SINUSBOT #####
  224. set_setting_sinusbot(){
  225. echo -e "$COL_GREEN $COL_YELLOW 4) Setting SinusBot $COL_RESET $COL_GREEN $COL_RESET"
  226. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/plugins
  227. chmod 0755 sinusbot
  228. set_youtube_install
  229. sed -i '1iYoutubeDLPath = "/usr/local/bin/youtube-dl"' /opt/ts3soundboard/config.ini
  230. wget --no-check-certificate $youtubeconf 2>/dev/null -O /etc/$youtubeconf2; chmod 644 /etc/$youtubeconf2
  231. echo -e "$COL_GREEN Setting SinusBot done ... $COL_RESET"
  232. echo ""
  233. }
  234.  
  235. ##### CREATION SINUSBOT 1 INSTANCE #####
  236. set_created_sinusbot_1instance(){
  237. echo -e "$COL_GREEN $COL_YELLOW 5) Creating SinusBot $COL_RESET $COL_GREEN $COL_RESET"
  238. iptables -A SERVICES -p tcp -m multiport --dports 80,8100:8130,8000,443 -m comment --comment "Allow: Webserver" -j ACCEPT
  239. iptables -A INPUT -p tcp --dport 8101 -m state --state NEW -j ACCEPT
  240. cd /opt/
  241. wget --no-check-certificate $sinusbotstart2bots 2>/dev/null -O $sinusbotstart2bots2; chmod +x $sinusbotstart2bots2
  242. sed -i -e "s/ListenPort = 8087/ListenPort = 8101/g" "/opt/ts3soundboard/config.ini"
  243. echo -e "$COL_GREEN SinusBot created done ... $COL_RESET"
  244. echo ""
  245. }
  246.  
  247. ##### CREATION SINUSBOT 2 INSTANCES #####
  248. set_created_sinusbot_2instances(){
  249. echo -e "$COL_GREEN $COL_YELLOW 5) Creating SinusBots $COL_RESET $COL_GREEN $COL_RESET"
  250. iptables -A SERVICES -p tcp -m multiport --dports 80,8100:8130,8000,443 -m comment --comment "Allow: Webserver" -j ACCEPT
  251. iptables -A INPUT -p tcp --dport 8101 -m state --state NEW -j ACCEPT
  252. iptables -A INPUT -p tcp --dport 8102 -m state --state NEW -j ACCEPT
  253. cd /opt/
  254. wget --no-check-certificate $sinusbotstart4bots 2>/dev/null -O $sinusbotstart4bots4; chmod +x $sinusbotstart4bots4
  255. cp -r ts3soundboard/ ts3soundboard2
  256. sed -i -e "s/ListenPort = 8087/ListenPort = 8101/g" "/opt/ts3soundboard/config.ini"
  257. sed -i -e "s/ListenPort = 8087/ListenPort = 8102/g" "/opt/ts3soundboard2/config.ini"
  258. sed -i -e "s/ts3soundboard/ts3soundboard2/g" "/opt/ts3soundboard2/config.ini"
  259. echo -e "$COL_GREEN SinusBots created done ... $COL_RESET"
  260. echo ""
  261. }
  262.  
  263. ##### CREATION SINUSBOT 3 INSTANCES #####
  264. set_created_sinusbot_3instances(){
  265. echo -e "$COL_GREEN $COL_YELLOW 5) Creating SinusBots $COL_RESET $COL_GREEN $COL_RESET"
  266. iptables -A SERVICES -p tcp -m multiport --dports 80,8100:8130,8000,443 -m comment --comment "Allow: Webserver" -j ACCEPT
  267. iptables -A INPUT -p tcp --dport 8101 -m state --state NEW -j ACCEPT
  268. iptables -A INPUT -p tcp --dport 8102 -m state --state NEW -j ACCEPT
  269. iptables -A INPUT -p tcp --dport 8103 -m state --state NEW -j ACCEPT
  270. cd /opt/
  271. wget --no-check-certificate $sinusbotstart6bots 2>/dev/null -O $sinusbotstart6bots6; chmod +x $sinusbotstart6bots6
  272. cp -r ts3soundboard/ ts3soundboard2
  273. cp -r ts3soundboard/ ts3soundboard3
  274. sed -i -e "s/ListenPort = 8087/ListenPort = 8101/g" "/opt/ts3soundboard/config.ini"
  275. sed -i -e "s/ListenPort = 8087/ListenPort = 8102/g" "/opt/ts3soundboard2/config.ini"
  276. sed -i -e "s/ListenPort = 8087/ListenPort = 8103/g" "/opt/ts3soundboard3/config.ini"
  277. sed -i -e "s/ts3soundboard/ts3soundboard2/g" "/opt/ts3soundboard2/config.ini"
  278. sed -i -e "s/ts3soundboard/ts3soundboard3/g" "/opt/ts3soundboard3/config.ini"
  279. echo -e "$COL_GREEN SinusBots created done ... $COL_RESET"
  280. echo ""
  281. }
  282.  
  283. ##### CREATION SINUSBOT 5 INSTANCES #####
  284. set_created_sinusbot_5instances(){
  285. echo -e "$COL_GREEN $COL_YELLOW 5) Creating SinusBots $COL_RESET $COL_GREEN $COL_RESET"
  286. iptables -A SERVICES -p tcp -m multiport --dports 80,8100:8130,8000,443 -m comment --comment "Allow: Webserver" -j ACCEPT
  287. iptables -A INPUT -p tcp --dport 8101 -m state --state NEW -j ACCEPT
  288. iptables -A INPUT -p tcp --dport 8102 -m state --state NEW -j ACCEPT
  289. iptables -A INPUT -p tcp --dport 8103 -m state --state NEW -j ACCEPT
  290. iptables -A INPUT -p tcp --dport 8104 -m state --state NEW -j ACCEPT
  291. iptables -A INPUT -p tcp --dport 8105 -m state --state NEW -j ACCEPT
  292. cd /opt/
  293. wget --no-check-certificate $sinusbotstart10bots 2>/dev/null -O $sinusbotstart10bots10; chmod +x $sinusbotstart10bots10
  294. cp -r ts3soundboard/ ts3soundboard2
  295. cp -r ts3soundboard/ ts3soundboard3
  296. cp -r ts3soundboard/ ts3soundboard4
  297. cp -r ts3soundboard/ ts3soundboard5
  298. sed -i -e "s/ListenPort = 8087/ListenPort = 8101/g" "/opt/ts3soundboard/config.ini"
  299. sed -i -e "s/ListenPort = 8087/ListenPort = 8102/g" "/opt/ts3soundboard2/config.ini"
  300. sed -i -e "s/ListenPort = 8087/ListenPort = 8103/g" "/opt/ts3soundboard3/config.ini"
  301. sed -i -e "s/ListenPort = 8087/ListenPort = 8104/g" "/opt/ts3soundboard4/config.ini"
  302. sed -i -e "s/ListenPort = 8087/ListenPort = 8105/g" "/opt/ts3soundboard5/config.ini"
  303. sed -i -e "s/ts3soundboard/ts3soundboard2/g" "/opt/ts3soundboard2/config.ini"
  304. sed -i -e "s/ts3soundboard/ts3soundboard3/g" "/opt/ts3soundboard3/config.ini"
  305. sed -i -e "s/ts3soundboard/ts3soundboard4/g" "/opt/ts3soundboard4/config.ini"
  306. sed -i -e "s/ts3soundboard/ts3soundboard5/g" "/opt/ts3soundboard5/config.ini"
  307. echo -e "$COL_GREEN SinusBots created done ... $COL_RESET"
  308. echo ""
  309. }
  310.  
  311. set_created_sinusbot_15instances(){
  312. echo -e "$COL_GREEN $COL_YELLOW 5) Creating SinusBots $COL_RESET $COL_GREEN $COL_RESET"
  313. iptables -A SERVICES -p tcp -m multiport --dports 80,8100:8130,8000,443 -m comment --comment "Allow: Webserver" -j ACCEPT
  314. iptables -A INPUT -p tcp --dport 8101 -m state --state NEW -j ACCEPT
  315. iptables -A INPUT -p tcp --dport 8102 -m state --state NEW -j ACCEPT
  316. iptables -A INPUT -p tcp --dport 8103 -m state --state NEW -j ACCEPT
  317. iptables -A INPUT -p tcp --dport 8104 -m state --state NEW -j ACCEPT
  318. iptables -A INPUT -p tcp --dport 8105 -m state --state NEW -j ACCEPT
  319. iptables -A INPUT -p tcp --dport 8106 -m state --state NEW -j ACCEPT
  320. iptables -A INPUT -p tcp --dport 8107 -m state --state NEW -j ACCEPT
  321. iptables -A INPUT -p tcp --dport 8108 -m state --state NEW -j ACCEPT
  322. iptables -A INPUT -p tcp --dport 8109 -m state --state NEW -j ACCEPT
  323. iptables -A INPUT -p tcp --dport 8110 -m state --state NEW -j ACCEPT
  324. iptables -A INPUT -p tcp --dport 8111 -m state --state NEW -j ACCEPT
  325. iptables -A INPUT -p tcp --dport 8112 -m state --state NEW -j ACCEPT
  326. iptables -A INPUT -p tcp --dport 8113 -m state --state NEW -j ACCEPT
  327. iptables -A INPUT -p tcp --dport 8114 -m state --state NEW -j ACCEPT
  328. iptables -A INPUT -p tcp --dport 8115 -m state --state NEW -j ACCEPT
  329. cd /opt/
  330. wget --no-check-certificate $sinusbotstart30bots 2>/dev/null -O $sinusbotstart30bots30; chmod +x $sinusbotstart30bots30
  331. cp -r ts3soundboard/ ts3soundboard2
  332. cp -r ts3soundboard/ ts3soundboard3
  333. cp -r ts3soundboard/ ts3soundboard4
  334. cp -r ts3soundboard/ ts3soundboard5
  335. cp -r ts3soundboard/ ts3soundboard6
  336. cp -r ts3soundboard/ ts3soundboard7
  337. cp -r ts3soundboard/ ts3soundboard8
  338. cp -r ts3soundboard/ ts3soundboard9
  339. cp -r ts3soundboard/ ts3soundboard10
  340. cp -r ts3soundboard/ ts3soundboard11
  341. cp -r ts3soundboard/ ts3soundboard12
  342. cp -r ts3soundboard/ ts3soundboard13
  343. cp -r ts3soundboard/ ts3soundboard14
  344. cp -r ts3soundboard/ ts3soundboard15
  345. sed -i -e "s/ListenPort = 8087/ListenPort = 8101/g" "/opt/ts3soundboard/config.ini"
  346. sed -i -e "s/ListenPort = 8087/ListenPort = 8102/g" "/opt/ts3soundboard2/config.ini"
  347. sed -i -e "s/ListenPort = 8087/ListenPort = 8103/g" "/opt/ts3soundboard3/config.ini"
  348. sed -i -e "s/ListenPort = 8087/ListenPort = 8104/g" "/opt/ts3soundboard4/config.ini"
  349. sed -i -e "s/ListenPort = 8087/ListenPort = 8105/g" "/opt/ts3soundboard5/config.ini"
  350. sed -i -e "s/ListenPort = 8087/ListenPort = 8106/g" "/opt/ts3soundboard6/config.ini"
  351. sed -i -e "s/ListenPort = 8087/ListenPort = 8107/g" "/opt/ts3soundboard7/config.ini"
  352. sed -i -e "s/ListenPort = 8087/ListenPort = 8108/g" "/opt/ts3soundboard8/config.ini"
  353. sed -i -e "s/ListenPort = 8087/ListenPort = 8109/g" "/opt/ts3soundboard9/config.ini"
  354. sed -i -e "s/ListenPort = 8087/ListenPort = 8110/g" "/opt/ts3soundboard10/config.ini"
  355. sed -i -e "s/ListenPort = 8087/ListenPort = 8111/g" "/opt/ts3soundboard11/config.ini"
  356. sed -i -e "s/ListenPort = 8087/ListenPort = 8112/g" "/opt/ts3soundboard12/config.ini"
  357. sed -i -e "s/ListenPort = 8087/ListenPort = 8113/g" "/opt/ts3soundboard13/config.ini"
  358. sed -i -e "s/ListenPort = 8087/ListenPort = 8114/g" "/opt/ts3soundboard14/config.ini"
  359. sed -i -e "s/ListenPort = 8087/ListenPort = 8115/g" "/opt/ts3soundboard15/config.ini"
  360.  
  361. sed -i -e "s/ts3soundboard/ts3soundboard2/g" "/opt/ts3soundboard2/config.ini"
  362. sed -i -e "s/ts3soundboard/ts3soundboard3/g" "/opt/ts3soundboard3/config.ini"
  363. sed -i -e "s/ts3soundboard/ts3soundboard4/g" "/opt/ts3soundboard4/config.ini"
  364. sed -i -e "s/ts3soundboard/ts3soundboard5/g" "/opt/ts3soundboard5/config.ini"
  365. sed -i -e "s/ts3soundboard/ts3soundboard6/g" "/opt/ts3soundboard6/config.ini"
  366. sed -i -e "s/ts3soundboard/ts3soundboard7/g" "/opt/ts3soundboard7/config.ini"
  367. sed -i -e "s/ts3soundboard/ts3soundboard8/g" "/opt/ts3soundboard8/config.ini"
  368. sed -i -e "s/ts3soundboard/ts3soundboard9/g" "/opt/ts3soundboard9/config.ini"
  369. sed -i -e "s/ts3soundboard/ts3soundboard10/g" "/opt/ts3soundboard10/config.ini"
  370. sed -i -e "s/ts3soundboard/ts3soundboard11/g" "/opt/ts3soundboard11/config.ini"
  371. sed -i -e "s/ts3soundboard/ts3soundboard12/g" "/opt/ts3soundboard12/config.ini"
  372. sed -i -e "s/ts3soundboard/ts3soundboard13/g" "/opt/ts3soundboard13/config.ini"
  373. sed -i -e "s/ts3soundboard/ts3soundboard14/g" "/opt/ts3soundboard14/config.ini"
  374. sed -i -e "s/ts3soundboard/ts3soundboard15/g" "/opt/ts3soundboard15/config.ini"
  375. echo -e "$COL_GREEN SinusBots created done ... $COL_RESET"
  376. echo ""
  377. }
  378.  
  379. ##### LAUNCH SINUSBOT 1 INSTANCE #####
  380. set_launch_sinusbot_1instance(){
  381. echo -e "$COL_GREEN $COL_YELLOW 6) Launch the SinusBot $COL_RESET $COL_GREEN $COL_RESET"
  382. echo -e "$COL_RED WARNING : Change the password immediately ! $COL_RESET"
  383. chown -R sinusbot:sinusbot /opt/ 2>/dev/null
  384. sleep 1
  385. cd /opt/ts3soundboard/
  386. su sinusbot -c "screen -A -m -d -S sinusbot1 ./sinusbot --pwreset foobar"
  387. sleep 3
  388. echo -e "$COL_GREEN The SinusBot is online ... $COL_RESET"
  389. echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8101$COL_GREEN $COL_RESET"
  390. echo -e "$COL_YELLOW Login: admin and Pass: foobar $COL_RESET-$COL_RED WARNING change the password ! $COL_RESET"
  391. echo -e "$COL_GREEN It's over ! Join our community at$COL_RED R4P3.NET $COL_GREEN $COL_RESET"
  392. echo ""
  393. }
  394.  
  395. ##### LAUNCH SINUSBOT 2 INSTANCES #####
  396. set_launch_sinusbot_2instances(){
  397. echo -e "$COL_GREEN $COL_YELLOW 6) Launch the SinusBots $COL_RESET $COL_GREEN $COL_RESET"
  398. echo -e "$COL_RED WARNING : Change the password immediately ! $COL_RESET"
  399. chown -R sinusbot:sinusbot /opt/ 2>/dev/null
  400. sleep 1
  401. cd /opt/ts3soundboard/
  402. su sinusbot -c "screen -A -m -d -S sinusbot1 ./sinusbot --pwreset foobar"
  403. sleep 3
  404. cd /opt/ts3soundboard2/
  405. su sinusbot -c "screen -A -m -d -S sinusbot2 ./sinusbot --pwreset foobar"
  406. sleep 3
  407. echo -e "$COL_GREEN The SinusBots are online ... $COL_RESET"
  408. echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8101 $COL_RESET"
  409. echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8102 $COL_RESET"
  410. echo -e "$COL_YELLOW Login: admin and Pass: foobar $COL_RESET-$COL_RED WARNING change the password ! $COL_RESET"
  411. echo -e "$COL_GREEN It's over ! Join our community at$COL_RED R4P3.NET $COL_GREEN $COL_RESET"
  412. echo ""
  413. }
  414.  
  415. ##### LAUNCH SINUSBOT 3 INSTANCES #####
  416. set_launch_sinusbot_3instances(){
  417. echo -e "$COL_GREEN $COL_YELLOW 6) Launch the SinusBots $COL_RESET $COL_GREEN $COL_RESET"
  418. echo -e "$COL_RED WARNING : Change the password immediately ! $COL_RESET"
  419. chown -R sinusbot:sinusbot /opt/ 2>/dev/null
  420. sleep 1
  421. cd /opt/ts3soundboard/
  422. su sinusbot -c "screen -A -m -d -S sinusbot1 ./sinusbot --pwreset foobar"
  423. sleep 3
  424. cd /opt/ts3soundboard2/
  425. su sinusbot -c "screen -A -m -d -S sinusbot2 ./sinusbot --pwreset foobar"
  426. sleep 3
  427. cd /opt/ts3soundboard3/
  428. su sinusbot -c "screen -A -m -d -S sinusbot3 ./sinusbot --pwreset foobar"
  429. sleep 3
  430. echo -e "$COL_GREEN The SinusBots are online ... $COL_RESET"
  431. echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8101 $COL_RESET"
  432. echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8102 $COL_RESET"
  433. echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8103 $COL_RESET"
  434. echo -e "$COL_YELLOW Login: admin and Pass: foobar $COL_RESET-$COL_RED WARNING change the password ! $COL_RESET"
  435. echo -e "$COL_GREEN It's over ! Join our community at$COL_RED R4P3.NET $COL_GREEN $COL_RESET"
  436. echo ""
  437. }
  438.  
  439. ##### LAUNCH SINUSBOT 5 INSTANCES #####
  440. set_launch_sinusbot_5instances(){
  441. echo -e "$COL_GREEN $COL_YELLOW 6) Launch the SinusBots $COL_RESET $COL_GREEN $COL_RESET"
  442. echo -e "$COL_RED WARNING : Change the password immediately ! $COL_RESET"
  443. chown -R sinusbot:sinusbot /opt/ 2>/dev/null
  444. sleep 1
  445. cd /opt/ts3soundboard/
  446. su sinusbot -c "screen -A -m -d -S sinusbot1 ./sinusbot --pwreset foobar"
  447. sleep 3
  448. cd /opt/ts3soundboard2/
  449. su sinusbot -c "screen -A -m -d -S sinusbot2 ./sinusbot --pwreset foobar"
  450. sleep 3
  451. cd /opt/ts3soundboard3/
  452. su sinusbot -c "screen -A -m -d -S sinusbot3 ./sinusbot --pwreset foobar"
  453. sleep 3
  454. cd /opt/ts3soundboard4/
  455. su sinusbot -c "screen -A -m -d -S sinusbot4 ./sinusbot --pwreset foobar"
  456. sleep 3
  457. cd /opt/ts3soundboard5/
  458. su sinusbot -c "screen -A -m -d -S sinusbot5 ./sinusbot --pwreset foobar"
  459. sleep 3
  460. echo -e "$COL_GREEN The SinusBots are online ... $COL_RESET"
  461. echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8101 $COL_RESET"
  462. echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8102 $COL_RESET"
  463. echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8103 $COL_RESET"
  464. echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8104 $COL_RESET"
  465. echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8105 $COL_RESET"
  466. echo -e "$COL_YELLOW Login: admin and Pass: foobar $COL_RESET-$COL_RED WARNING change the password ! $COL_RESET"
  467. echo -e "$COL_GREEN It's over ! Join our community at$COL_RED R4P3.NET $COL_GREEN $COL_RESET"
  468. echo ""
  469. }
  470.  
  471.  
  472. set_launch_sinusbot_15instances(){
  473. echo -e "$COL_GREEN $COL_YELLOW 6) Launch the SinusBots $COL_RESET $COL_GREEN $COL_RESET"
  474. echo -e "$COL_RED WARNING : Change the password immediately ! $COL_RESET"
  475. chown -R sinusbot:sinusbot /opt/ 2>/dev/null
  476. sleep 1
  477. cd /opt/ts3soundboard/
  478. su sinusbot -c "screen -A -m -d -S sinusbot1 ./sinusbot --pwreset foobar"
  479. sleep 3
  480. cd /opt/ts3soundboard2/
  481. su sinusbot -c "screen -A -m -d -S sinusbot2 ./sinusbot --pwreset foobar"
  482. sleep 3
  483. cd /opt/ts3soundboard3/
  484. su sinusbot -c "screen -A -m -d -S sinusbot3 ./sinusbot --pwreset foobar"
  485. sleep 3
  486. cd /opt/ts3soundboard4/
  487. su sinusbot -c "screen -A -m -d -S sinusbot4 ./sinusbot --pwreset foobar"
  488. sleep 3
  489. cd /opt/ts3soundboard5/
  490. su sinusbot -c "screen -A -m -d -S sinusbot5 ./sinusbot --pwreset foobar"
  491. sleep 3
  492. cd /opt/ts3soundboard6/
  493. su sinusbot -c "screen -A -m -d -S sinusbot6 ./sinusbot --pwreset foobar"
  494. sleep 3
  495. cd /opt/ts3soundboard7/
  496. su sinusbot -c "screen -A -m -d -S sinusbot7 ./sinusbot --pwreset foobar"
  497. sleep 3
  498. cd /opt/ts3soundboard8/
  499. su sinusbot -c "screen -A -m -d -S sinusbot8 ./sinusbot --pwreset foobar"
  500. sleep 3
  501. cd /opt/ts3soundboard9/
  502. su sinusbot -c "screen -A -m -d -S sinusbot9 ./sinusbot --pwreset foobar"
  503. sleep 3
  504. cd /opt/ts3soundboard10/
  505. su sinusbot -c "screen -A -m -d -S sinusbot10 ./sinusbot --pwreset foobar"
  506. sleep 3
  507. cd /opt/ts3soundboard11/
  508. su sinusbot -c "screen -A -m -d -S sinusbot11 ./sinusbot --pwreset foobar"
  509. sleep 3
  510. cd /opt/ts3soundboard12/
  511. su sinusbot -c "screen -A -m -d -S sinusbot12 ./sinusbot --pwreset foobar"
  512. sleep 3
  513. cd /opt/ts3soundboard13/
  514. su sinusbot -c "screen -A -m -d -S sinusbot13 ./sinusbot --pwreset foobar"
  515. sleep 3
  516. cd /opt/ts3soundboard14/
  517. su sinusbot -c "screen -A -m -d -S sinusbot14 ./sinusbot --pwreset foobar"
  518. sleep 3
  519. cd /opt/ts3soundboard15/
  520. su sinusbot -c "screen -A -m -d -S sinusbot15 ./sinusbot --pwreset foobar"
  521. sleep 3
  522.  
  523.  
  524.  
  525.  
  526. echo -e "$COL_GREEN The SinusBots are online ... $COL_RESET"
  527. echo -e "$COL_GREEN $COL_RESET Ce que ve as porta? nAO VAI VER 1!!!!@ TOMA A RANGE 8101 - 8115 $COL_RESET"
  528. echo -e "$COL_YELLOW Login: admin and Pass: foobar $COL_RESET-$COL_RED WARNING change the password ! $COL_RESET"
  529. echo -e "$COL_GREEN It's over ! Join our community at$COL_RED R4P3.NET $COL_GREEN $COL_RESET"
  530. echo ""
  531. }
  532.  
  533. ##### UNINSTALL SCRIPT #####
  534. set_uninstall(){
  535. clear
  536. echo -e "$COL_GREEN######################################################### $COL_RESET"
  537. echo -e "$COL_GREEN# $COL_RED $COL_GREEN Undo all changes made by the script # $COL_RESET"
  538. echo -e "$COL_GREEN######################################################### $COL_RESET"
  539. echo -e "$COL_GREEN# $COL_RED ARE YOU SURE ? $COL_GREEN # $COL_RESET"
  540. echo -e "$COL_GREEN# $COL_RED Y)$COL_GREEN Yes # $COL_RESET"
  541. echo -e "$COL_GREEN# $COL_RED N)$COL_GREEN No # $COL_RESET"
  542. echo -e "$COL_GREEN# $COL_RED Q)$COL_GREEN Quit # $COL_RESET"
  543. echo -e "$COL_GREEN######################################################### "
  544. echo -e "Answer: $COL_RESET"
  545. read answer
  546.  
  547. case $answer in
  548. "y" | "Y")
  549. cd /opt/
  550. su sinusbot -c "screen -X -S sinusbot1 quit"
  551. su sinusbot -c "screen -X -S sinusbot2 quit"
  552. su sinusbot -c "screen -X -S sinusbot3 quit"
  553. su sinusbot -c "screen -X -S sinusbot4 quit"
  554. su sinusbot -c "screen -X -S sinusbot5 quit"
  555. su root -c "pkill screen"
  556. rm -R ts3soundboard/ ts3soundboard2/ ts3soundboard3/ ts3soundboard4/ ts3soundboard5/ 2>/dev/null
  557. rm -R 2_sinusbot.sh.x 4_sinusbots.sh.x 6_sinusbots.sh.x 10_sinusbots.sh.x 2>/dev/null
  558. rm -R /etc/youtube-dl.conf 2>/dev/null
  559. clear
  560. cd /etc/init.d/
  561. update-rc.d -f sinusbot_aio_autostart remove
  562. rm -R sinusbot_aio_autostart 2>/dev/null
  563. clear
  564. mv /etc/apt/sources.list_temporary /etc/apt/sources.list
  565. grep -v '.*hosts.*' /etc/hosts_temporary > /etc/hosts
  566. sudo apt-get -y remove youtube-dl > /dev/null
  567. sudo apt-get -y remove --auto-remove youtube-dl > /dev/null
  568. sudo apt-get -y purge youtube-dl > /dev/null
  569. sudo apt-get -y purge --auto-remove youtube-dl > /dev/null
  570. userdel sinusbot
  571. apt-get purge x11vnc xinit xvfb libxcursor1 ca-certificates bzip2 libglib2.0-0 sudo htop screen curl -y > /dev/null
  572. apt-get autoremove -y > /dev/null
  573. apt-get autoclean -y > /dev/null
  574. echo -e "$COL_GREEN All was been deleted. We hope to see you back one time on$COL_RED r4p3.net $COL_RESET"
  575. rm -- "$0"
  576. echo ""
  577. exit
  578. ;;
  579.  
  580. "n" | "N")
  581. echo -e "$COL_GREEN Uninstall has been canceled. $COL_RESET"
  582. echo ""
  583. restart_script
  584. ;;
  585.  
  586. "q" | "Q")
  587. echo -e "$COL_GREEN Uninstall has been canceled. $COL_RESET"
  588. echo -e "$COL_GREEN Goodbye and see you again on$COL_RED R4P3.net $COL_RESET"
  589. echo ""
  590. exit
  591. ;;
  592.  
  593. *)
  594. printf "${COL_RED}Bad Choice. Try Again !\n${NC}"
  595. read -n 1
  596. clear
  597. set_uninstall
  598. ;;
  599. esac
  600. }
  601.  
  602. ######## AUTO START #######
  603. set_auto_start(){
  604. clear
  605. echo -e "$COL_GREEN######################################################### $COL_RESET"
  606. echo -e "$COL_GREEN# $COL_GREEN AutoStart Script / Start Stop Restart # $COL_RESET"
  607. echo -e "$COL_GREEN######################################################### $COL_RESET"
  608. echo -e "$COL_GREEN# $COL_RED ARE YOU SURE ? $COL_GREEN # $COL_RESET"
  609. echo -e "$COL_GREEN# $COL_RED Y)$COL_GREEN Yes # $COL_RESET"
  610. echo -e "$COL_GREEN# $COL_RED N)$COL_GREEN No # $COL_RESET"
  611. echo -e "$COL_GREEN# $COL_RED Q)$COL_GREEN Quit # $COL_RESET"
  612. echo -e "$COL_GREEN######################################################### "
  613. echo -e "Answer: $COL_RESET"
  614. read answer
  615.  
  616. case $answer in
  617. "y" | "Y")
  618. cd /etc/init.d/
  619. wget --no-check-certificate $sinusbotautostart 2>/dev/null -O sinusbot_aio_autostart; chmod 0755 sinusbot_aio_autostart
  620. update-rc.d sinusbot_aio_autostart defaults
  621. echo -e "$COL_GREEN AutoStart Script installed.\nGoodbye and see you again on$COL_RED R4P3.net $COL_RESET"
  622. echo ""
  623. ;;
  624.  
  625. "n" | "N")
  626. echo -e "$COL_GREEN AutoStart Script has been canceled. $COL_RESET"
  627. echo ""
  628. restart_script
  629. ;;
  630.  
  631. "q" | "Q")
  632. echo -e "$COL_GREEN AutoStart Script has been canceled. $COL_RESET"
  633. echo -e "$COL_GREEN Goodbye and see you again on$COL_RED R4P3.net $COL_RESET"
  634. echo ""
  635. exit
  636. ;;
  637.  
  638. *)
  639. printf "${COL_RED}Bad Choice. Try Again !\n${NC}"
  640. read -n 1
  641. clear
  642. set_auto_start
  643. ;;
  644. esac
  645. }
  646.  
  647. ###### UPDATE SCRIPT ######
  648. set_update(){
  649. clear
  650. echo -e "$COL_GREEN######################################################### $COL_RESET"
  651. echo -e "$COL_GREEN# $COL_GREEN Update SinusBots ! # $COL_RESET"
  652. echo -e "$COL_GREEN# $COL_YELLOW SinusBot v$scriptsinusbotversion $COL_RESET $COL_GREEN # $COL_RESET"
  653. echo -e "$COL_GREEN# $COL_YELLOW TeamSpeak 3 Client v$teamspeakclientversion $COL_RESET $COL_GREEN # $COL_RESET"
  654. echo -e "$COL_GREEN# $COL_YELLOW With various Scripts, Languages and Themes $COL_RESET $COL_GREEN # $COL_RESET"
  655. echo -e "$COL_GREEN######################################################### $COL_RESET"
  656. echo -e "$COL_GREEN# $COL_RED ##### PLEASE MAKE YOUR CHOICE ! ##### $COL_RESET $COL_GREEN # $COL_RESET"
  657. echo -e "$COL_GREEN# $COL_CYAN WHAT DO YOU HAVE INSTALL PREVIOUSLY ? $COL_RESET $COL_GREEN # $COL_RESET"
  658. echo -e "$COL_GREEN# $COL_RED 1)$COL_GREEN 2 SinusBots with 1 instance # $COL_RESET"
  659. echo -e "$COL_GREEN# $COL_RED 2)$COL_GREEN 4 SinusBots with 2 instances # $COL_RESET"
  660. echo -e "$COL_GREEN# $COL_RED 3)$COL_GREEN 6 SinusBots with 3 instances # $COL_RESET"
  661. echo -e "$COL_GREEN# $COL_RED 4)$COL_GREEN 10 SinusBots with 5 instances # $COL_RESET"
  662. echo -e "$COL_GREEN# $COL_RED 5)$COL_GREEN 20 SinusBots with 10 instances # $COL_RESET"
  663. echo -e "$COL_GREEN# $COL_RED 6)$COL_GREEN 30 SinusBots with 15 instances # $COL_RESET"
  664. echo -e "$COL_GREEN# $COL_RED 7)$COL_GREEN 50 SinusBots with 25 instances # $COL_RESET"
  665. echo -e "$COL_GREEN# $COL_RED Y)$COL_GREEN YouTube download update and upgrade # $COL_RESET"
  666. echo -e "$COL_GREEN# $COL_RED Q)$COL_GREEN Quit # $COL_RESET"
  667. echo -e "$COL_GREEN######################################################### "
  668. echo -e "Answer: $COL_RESET"
  669. read answer
  670.  
  671. case $answer in
  672. "1")
  673. set_stop_all_instances
  674. set_update_sinusbot_1instance
  675. set_update_ts3client_1instance
  676. set_launch_sinusbot_update_1instance
  677. ;;
  678.  
  679. "2")
  680. set_stop_all_instances
  681. set_update_sinusbot_2instances
  682. set_update_ts3client_2instances
  683. set_launch_sinusbot_update_2instances
  684. ;;
  685.  
  686. "3")
  687. set_stop_all_instances
  688. set_update_sinusbot_3instances
  689. set_update_ts3client_3instances
  690. set_launch_sinusbot_update_3instances
  691. ;;
  692.  
  693. "4")
  694. set_stop_all_instances
  695. set_update_sinusbot_5instances
  696. set_update_ts3client_5instances
  697. set_launch_sinusbot_update_5instances
  698. ;;
  699.  
  700. "5")
  701. set_premium
  702. ;;
  703.  
  704. "6")
  705. set_premium
  706. ;;
  707.  
  708. "7")
  709. set_premium
  710. ;;
  711.  
  712. "y" | "Y" )
  713. set_youtube_install
  714. ;;
  715.  
  716. "q" | "Q")
  717. echo -e "$COL_GREEN Update has been canceled. $COL_RESET"
  718. echo -e "$COL_GREEN Goodbye and see you again on$COL_RED R4P3.net $COL_RESET"
  719. echo ""
  720. exit
  721. ;;
  722.  
  723. *)
  724. printf "${COL_RED}Bad Choice. Try Again !\n${NC}"
  725. read -n 1
  726. clear
  727. set_update
  728. ;;
  729. esac
  730. }
  731.  
  732. ##### STOP ALL INSTANCES #####
  733. set_stop_all_instances(){
  734. echo -e "$COL_GREEN $COL_YELLOW 1) Stoping all instances of SinusBots $COL_RESET $COL_GREEN $COL_RESET"
  735. sleep 1
  736. cd /opt/
  737. su sinusbot -c "screen -X -S sinusbot1 quit"
  738. su sinusbot -c "screen -X -S sinusbot2 quit"
  739. su sinusbot -c "screen -X -S sinusbot3 quit"
  740. su sinusbot -c "screen -X -S sinusbot4 quit"
  741. su sinusbot -c "screen -X -S sinusbot5 quit"
  742. su root -c "pkill screen"
  743. echo -e "$COL_GREEN All instances of SinusBots are stoped ... $COL_RESET"
  744. echo ""
  745. }
  746.  
  747. ##### UPDATE SINUSBOT 1 INSTANCE #####
  748. set_update_sinusbot_1instance(){
  749. echo -e "$COL_GREEN $COL_YELLOW 2) Updating SinusBot to v$scriptsinusbotversion $COL_RESET $COL_GREEN $COL_RESET"
  750. cd /opt/ts3soundboard
  751. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  752. tar -xjf $sinusbotlastversion2
  753. rm -R $sinusbotlastversion2
  754. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/plugins
  755. cd /opt/
  756. rm -R $sinusbotstart2bots2
  757. wget --no-check-certificate $sinusbotstart2bots 2>/dev/null -O $sinusbotstart2bots2; chmod +x $sinusbotstart2bots2
  758. echo -e "$COL_GREEN Update SinusBot v$scriptsinusbotversion done ... $COL_RESET"
  759. echo ""
  760. }
  761.  
  762. ##### UPDATE SINUSBOT 2 INSTANCES #####
  763. set_update_sinusbot_2instances(){
  764. echo -e "$COL_GREEN $COL_YELLOW 2) Updating SinusBots to v$scriptsinusbotversion $COL_RESET $COL_GREEN $COL_RESET"
  765. cd /opt/ts3soundboard
  766. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  767. tar -xjf $sinusbotlastversion2
  768. rm -R $sinusbotlastversion2
  769. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/plugins
  770. sleep 1
  771. cd /opt/ts3soundboard2
  772. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  773. tar -xjf $sinusbotlastversion2
  774. rm -R $sinusbotlastversion2
  775. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard2/TeamSpeak3-Client-linux_amd64/plugins
  776. cd /opt/
  777. rm -R $sinusbotstart4bots4
  778. wget --no-check-certificate $sinusbotstart4bots 2>/dev/null -O $sinusbotstart4bots4; chmod +x $sinusbotstart4bots4
  779. echo -e "$COL_GREEN Update SinusBots v$scriptsinusbotversion done ... $COL_RESET"
  780. echo ""
  781. }
  782.  
  783. ##### UPDATE SINUSBOT 3 INSTANCES #####
  784. set_update_sinusbot_3instances(){
  785. echo -e "$COL_GREEN $COL_YELLOW 2) Updating SinusBots to v$scriptsinusbotversion $COL_RESET $COL_GREEN $COL_RESET"
  786. cd /opt/ts3soundboard
  787. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  788. tar -xjf $sinusbotlastversion2
  789. rm -R $sinusbotlastversion2
  790. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/plugins
  791. sleep 1
  792. cd /opt/ts3soundboard2
  793. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  794. tar -xjf $sinusbotlastversion2
  795. rm -R $sinusbotlastversion2
  796. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard2/TeamSpeak3-Client-linux_amd64/plugins
  797. cd /opt/
  798. sleep 1
  799. cd /opt/ts3soundboard3
  800. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  801. tar -xjf $sinusbotlastversion2
  802. rm -R $sinusbotlastversion2
  803. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard3/TeamSpeak3-Client-linux_amd64/plugins
  804. cd /opt/
  805. rm -R $sinusbotstart6bots6
  806. wget --no-check-certificate $sinusbotstart6bots 2>/dev/null -O $sinusbotstart6bots6; chmod +x $sinusbotstart6bots6
  807. echo -e "$COL_GREEN Update SinusBots v$scriptsinusbotversion done ... $COL_RESET"
  808. echo ""
  809. }
  810.  
  811. ##### UPDATE SINUSBOT 5 INSTANCES #####
  812. set_update_sinusbot_5instances(){
  813. echo -e "$COL_GREEN $COL_YELLOW 2) Updating SinusBots to v$scriptsinusbotversion $COL_RESET $COL_GREEN $COL_RESET"
  814. cd /opt/ts3soundboard
  815. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  816. tar -xjf $sinusbotlastversion2
  817. rm -R $sinusbotlastversion2
  818. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/plugins
  819. sleep 1
  820. cd /opt/ts3soundboard2
  821. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  822. tar -xjf $sinusbotlastversion2
  823. rm -R $sinusbotlastversion2
  824. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard2/TeamSpeak3-Client-linux_amd64/plugins
  825. cd /opt/
  826. sleep 1
  827. cd /opt/ts3soundboard3
  828. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  829. tar -xjf $sinusbotlastversion2
  830. rm -R $sinusbotlastversion2
  831. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard3/TeamSpeak3-Client-linux_amd64/plugins
  832. cd /opt/
  833. sleep 1
  834. cd /opt/ts3soundboard4
  835. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  836. tar -xjf $sinusbotlastversion2
  837. rm -R $sinusbotlastversion2
  838. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard4/TeamSpeak3-Client-linux_amd64/plugins
  839. cd /opt/
  840. sleep 1
  841. cd /opt/ts3soundboard5
  842. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  843. tar -xjf $sinusbotlastversion2
  844. rm -R $sinusbotlastversion2
  845. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard5/TeamSpeak3-Client-linux_amd64/plugins
  846. cd /opt/
  847. rm -R $sinusbotstart10bots10
  848. wget --no-check-certificate $sinusbotstart10bots 2>/dev/null -O $sinusbotstart10bots10; chmod +x $sinusbotstart10bots10
  849. echo -e "$COL_GREEN Update SinusBots v$scriptsinusbotversion done ... $COL_RESET"
  850. echo ""
  851. }
  852.  
  853. ##### UPDATE TEAMSPEAK 3 CLIENT 1 INSTANCE #####
  854. set_update_ts3client_1instance(){
  855. echo -e "$COL_GREEN $COL_YELLOW 3) Updating TeamSpeak 3 Client v$teamspeakclientversion $COL_RESET $COL_GREEN $COL_RESET"
  856. 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"
  857. 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"
  858. cd /opt/ts3soundboard
  859. wget $ts3clientversion
  860. chmod 0755 $ts3clientversion2
  861. su root -c "./$ts3clientversion2"
  862. rm -R $ts3clientversion2
  863. echo -e "$COL_GREEN Update TeamSpeak 3 Client v$teamspeakclientversion done ... $COL_RESET"
  864. echo ""
  865. }
  866.  
  867. ##### UPDATE TEAMSPEAK 3 CLIENT 2 INSTANCES #####
  868. set_update_ts3client_2instances(){
  869. echo -e "$COL_GREEN $COL_YELLOW 3) Updating TeamSpeak 3 Client v$teamspeakclientversion $COL_RESET $COL_GREEN $COL_RESET"
  870. 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"
  871. 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"
  872. cd /opt/ts3soundboard
  873. wget $ts3clientversion
  874. chmod 0755 $ts3clientversion2
  875. su root -c "./$ts3clientversion2"
  876. rm -R $ts3clientversion2
  877. sleep 1
  878. cd /opt/ts3soundboard2
  879. wget $ts3clientversion
  880. chmod 0755 $ts3clientversion2
  881. su root -c "./$ts3clientversion2"
  882. rm -R $ts3clientversion2
  883. echo -e "$COL_GREEN Update TeamSpeak 3 Client v$teamspeakclientversion done ... $COL_RESET"
  884. echo ""
  885. }
  886.  
  887. ##### UPDATE TEAMSPEAK 3 CLIENT 3 INSTANCES #####
  888. set_update_ts3client_3instances(){
  889. echo -e "$COL_GREEN $COL_YELLOW 3) Updating TeamSpeak 3 Client v$teamspeakclientversion $COL_RESET $COL_GREEN $COL_RESET"
  890. 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"
  891. 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"
  892. cd /opt/ts3soundboard
  893. wget $ts3clientversion
  894. chmod 0755 $ts3clientversion2
  895. su root -c "./$ts3clientversion2"
  896. rm -R $ts3clientversion2
  897. sleep 1
  898. cd /opt/ts3soundboard2
  899. wget $ts3clientversion
  900. chmod 0755 $ts3clientversion2
  901. su root -c "./$ts3clientversion2"
  902. rm -R $ts3clientversion2
  903. sleep 1
  904. cd /opt/ts3soundboard3
  905. wget $ts3clientversion
  906. chmod 0755 $ts3clientversion2
  907. su root -c "./$ts3clientversion2"
  908. rm -R $ts3clientversion2
  909. echo -e "$COL_GREEN Update TeamSpeak 3 Client v$teamspeakclientversion done ... $COL_RESET"
  910. echo ""
  911. }
  912.  
  913. ##### UPDATE TEAMSPEAK 3 CLIENT 5 INSTANCES #####
  914. set_update_ts3client_5instances(){
  915. echo -e "$COL_GREEN $COL_YELLOW 3) Updating TeamSpeak 3 Client v$teamspeakclientversion $COL_RESET $COL_GREEN $COL_RESET"
  916. 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"
  917. 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"
  918. cd /opt/ts3soundboard
  919. wget $ts3clientversion
  920. chmod 0755 $ts3clientversion2
  921. su root -c "./$ts3clientversion2"
  922. rm -R $ts3clientversion2
  923. sleep 1
  924. cd /opt/ts3soundboard2
  925. wget $ts3clientversion
  926. chmod 0755 $ts3clientversion2
  927. su root -c "./$ts3clientversion2"
  928. rm -R $ts3clientversion2
  929. sleep 1
  930. cd /opt/ts3soundboard3
  931. wget $ts3clientversion
  932. chmod 0755 $ts3clientversion2
  933. su root -c "./$ts3clientversion2"
  934. rm -R $ts3clientversion2
  935. sleep 1
  936. cd /opt/ts3soundboard4
  937. wget $ts3clientversion
  938. chmod 0755 $ts3clientversion2
  939. su root -c "./$ts3clientversion2"
  940. rm -R $ts3clientversion2
  941. sleep 1
  942. cd /opt/ts3soundboard5
  943. wget $ts3clientversion
  944. chmod 0755 $ts3clientversion2
  945. su root -c "./$ts3clientversion2"
  946. rm -R $ts3clientversion2
  947. echo -e "$COL_GREEN Update TeamSpeak 3 Client v$teamspeakclientversion done ... $COL_RESET"
  948. echo ""
  949. }
  950.  
  951. ##### LAUNCH SINUSBOT UPDATE 1 INSTANCE #####
  952. set_launch_sinusbot_update_1instance(){
  953. echo -e "$COL_GREEN $COL_YELLOW 6) Launch the SinusBot $COL_RESET $COL_GREEN $COL_RESET"
  954. echo -e "$COL_RED WARNING : Change the password immediately ! $COL_RESET"
  955. chown -R sinusbot:sinusbot /opt/ 2>/dev/null
  956. sleep 1
  957. cd /opt/ts3soundboard/
  958. su sinusbot -c "screen -A -m -d -S sinusbot1 ./sinusbot --pwreset foobar" sleep 3
  959. echo -e "$COL_GREEN The SinusBot is online ... $COL_RESET"
  960. echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8101$COL_GREEN $COL_RESET"
  961. echo -e "$COL_YELLOW Login: admin and Pass: only you know ! $COL_RESET"
  962. echo -e "$COL_GREEN It's over ! Join our community at$COL_RED R4P3.NET $COL_GREEN $COL_RESET"
  963. echo ""
  964. }
  965.  
  966. ##### LAUNCH SINUSBOT UPDATE 2 INSTANCES #####
  967. set_launch_sinusbot_update_2instances(){
  968. echo -e "$COL_GREEN $COL_YELLOW 6) Launch the SinusBots $COL_RESET $COL_GREEN $COL_RESET"
  969. echo -e "$COL_RED WARNING : Change the password immediately ! $COL_RESET"
  970. chown -R sinusbot:sinusbot /opt/ 2>/dev/null
  971. sleep 1
  972. cd /opt/ts3soundboard/
  973. su sinusbot -c "screen -A -m -d -S sinusbot1 ./sinusbot --pwreset foobar" sleep 3
  974. cd /opt/ts3soundboard2/
  975. su sinusbot -c "screen -A -m -d -S sinusbot2 ./sinusbot --pwreset foobar" sleep 3
  976. echo -e "$COL_GREEN The SinusBots are online ... $COL_RESET"
  977. echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8101 $COL_RESET"
  978. echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8102 $COL_RESET"
  979. echo -e "$COL_YELLOW Login: admin and Pass: only you know ! $COL_RESET"
  980. echo -e "$COL_GREEN It's over ! Join our community at$COL_RED R4P3.NET $COL_GREEN $COL_RESET"
  981. echo ""
  982. }
  983.  
  984. ##### LAUNCH SINUSBOT UPDATE 3 INSTANCES #####
  985. set_launch_sinusbot_update_3instances(){
  986. echo -e "$COL_GREEN $COL_YELLOW 6) Launch the SinusBots $COL_RESET $COL_GREEN $COL_RESET"
  987. echo -e "$COL_RED WARNING : Change the password immediately ! $COL_RESET"
  988. chown -R sinusbot:sinusbot /opt/ 2>/dev/null
  989. sleep 1
  990. cd /opt/ts3soundboard/
  991. su sinusbot -c "screen -A -m -d -S sinusbot1 ./sinusbot --pwreset foobar" sleep 3
  992. cd /opt/ts3soundboard2/
  993. su sinusbot -c "screen -A -m -d -S sinusbot2 ./sinusbot --pwreset foobar" sleep 3
  994. cd /opt/ts3soundboard3/
  995. su sinusbot -c "screen -A -m -d -S sinusbot3 ./sinusbot --pwreset foobar" sleep 3
  996. echo -e "$COL_GREEN The SinusBots are online ... $COL_RESET"
  997. echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8101 $COL_RESET"
  998. echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8102 $COL_RESET"
  999. echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8103 $COL_RESET"
  1000. echo -e "$COL_YELLOW Login: admin and Pass: only you know ! $COL_RESET"
  1001. echo -e "$COL_GREEN It's over ! Join our community at$COL_RED R4P3.NET $COL_GREEN $COL_RESET"
  1002. echo ""
  1003. }
  1004.  
  1005. ##### LAUNCH SINUSBOT UPDATE 5 INSTANCES #####
  1006. set_launch_sinusbot_update_5instances(){
  1007. echo -e "$COL_GREEN $COL_YELLOW 6) Launch the SinusBots $COL_RESET $COL_GREEN $COL_RESET"
  1008. echo -e "$COL_RED WARNING : Change the password immediately ! $COL_RESET"
  1009. chown -R sinusbot:sinusbot /opt/ 2>/dev/null
  1010. sleep 1
  1011. cd /opt/ts3soundboard/
  1012. su sinusbot -c "screen -A -m -d -S sinusbot1 ./sinusbot --pwreset foobar" sleep 3
  1013. cd /opt/ts3soundboard2/
  1014. su sinusbot -c "screen -A -m -d -S sinusbot2 ./sinusbot --pwreset foobar" sleep 3
  1015. cd /opt/ts3soundboard3/
  1016. su sinusbot -c "screen -A -m -d -S sinusbot3 ./sinusbot --pwreset foobar" sleep 3
  1017. cd /opt/ts3soundboard4/
  1018. su sinusbot -c "screen -A -m -d -S sinusbot4 ./sinusbot --pwreset foobar" sleep 3
  1019. cd /opt/ts3soundboard5/
  1020. su sinusbot -c "screen -A -m -d -S sinusbot5 ./sinusbot --pwreset foobar" sleep 10
  1021. echo -e "$COL_GREEN The SinusBots are online ... $COL_RESET"
  1022. echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8101 $COL_RESET"
  1023. echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8102 $COL_RESET"
  1024. echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8103 $COL_RESET"
  1025. echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8104 $COL_RESET"
  1026. echo -e "$COL_GREEN $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8105 $COL_RESET"
  1027. echo -e "$COL_YELLOW Login: admin and Pass: only you know ! $COL_RESET"
  1028. echo -e "$COL_GREEN It's over ! Join our community at$COL_RED R4P3.NET $COL_GREEN $COL_RESET"
  1029. echo ""
  1030. }
  1031.  
  1032. ######## CHANGELOG ########
  1033. set_changelog(){
  1034. clear
  1035. echo -e "$COL_GREEN######################################################### $COL_RESET"
  1036. echo -e "$COL_GREEN# $COL_GREEN Changelog # $COL_RESET"
  1037. echo -e "$COL_GREEN# Last updated on$COL_RED $datescriptversion $COL_GREEN # $COL_RESET"
  1038. echo -e "$COL_GREEN######################################################### $COL_RESET"
  1039. echo -e "$COL_GREEN# v1.25 - Update$COL_RED SinusBot version 0.9.20-a9b8dc6$COL_GREEN # $COL_RESET"
  1040. echo -e "$COL_GREEN# v1.24 - Added security in SinusBot AIO # $COL_RESET"
  1041. echo -e "$COL_GREEN# v1.23 - Updated and Added new SinusBot scripts # $COL_RESET"
  1042. echo -e "$COL_GREEN# v1.22 - Update$COL_RED SinusBot version 0.9.18-8499d2c$COL_GREEN # $COL_RESET"
  1043. echo -e "$COL_GREEN# v1.21 - Update$COL_RED SinusBot version 0.9.16-10f0fad$COL_GREEN # $COL_RESET"
  1044. echo -e "$COL_GREEN# v1.20 - Updated and Added new SinusBot scripts # $COL_RESET"
  1045. echo -e "$COL_GREEN# v1.19 - Update$COL_RED SinusBot version 0.9.15-b20cc30$COL_GREEN # $COL_RESET"
  1046. echo -e "$COL_GREEN# v1.18 - Added get SinusBot AIO Installer PREMIUM # $COL_RESET"
  1047. echo -e "$COL_GREEN# v1.17 - Added Make a donate and Donation Goal # $COL_RESET"
  1048. echo -e "$COL_GREEN# v1.16 - Fixe bugs Updated Scripts # $COL_RESET"
  1049. echo -e "$COL_GREEN# v1.15 - Fixe SinusBot AIO Installer # $COL_RESET"
  1050. echo -e "$COL_GREEN# v1.14 - New hosting with new sources files. # $COL_RESET"
  1051. echo -e "$COL_GREEN# v1.13 - Fixe bugs, Updated and Added new scripts # $COL_RESET"
  1052. echo -e "$COL_GREEN# v1.12 - Updated SinusBot scripts and languages # $COL_RESET"
  1053. echo -e "$COL_GREEN# v1.11 - Added script Auto Checking for Updates # $COL_RESET"
  1054. echo -e "$COL_GREEN# v1.10 - Added options 6; 7; R; U; A; L; C # $COL_RESET"
  1055. echo -e "$COL_GREEN# v1.00 -$COL_RED /!\ Total rewrite of the script /!\ $COL_GREEN # $COL_RESET"
  1056. echo -e "$COL_GREEN# -$COL_CYAN Added encryption and expiration date $COL_GREEN # $COL_RESET"
  1057. echo -e "$COL_GREEN######################################################### $COL_RESET"
  1058. echo ""
  1059. restart_script
  1060. }
  1061.  
  1062. ######## DONATION #########
  1063. set_donation(){
  1064. clear
  1065. echo -e "$COL_GREEN######################################################### $COL_RESET"
  1066. echo -e "$COL_GREEN# $COL_GREEN YOUR GIFTS IT'S ME STRENGTH ! # $COL_RESET"
  1067. echo -e "$COL_GREEN# $COL_YELLOW I want to thank all the generous donors who $COL_GREEN # $COL_RESET"
  1068. echo -e "$COL_GREEN# $COL_YELLOW understand the importance of giving, without $COL_GREEN # $COL_RESET"
  1069. echo -e "$COL_GREEN# $COL_YELLOW my script that could not exist. $COL_GREEN # $COL_RESET"
  1070. printf "$COL_GREEN######################################################### $COL_RESET\n"
  1071. printf "$COL_GREEN#$COL_YELLOW DONATIONS RECEIVED $COL_RED"; curl $call_donate_received;
  1072. printf " $COL_CYAN DONATION GOAL $COL_RED"; curl $call_donation_goal; printf "$COL_GREEN # $COL_RESET\n"
  1073. echo -e "$COL_GREEN######################################################### $COL_RESET"
  1074. echo -e "$COL_GREEN# $COL_RED HOW TO MAKE A DONATION ? $COL_GREEN # $COL_RESET"
  1075. echo -e "$COL_GREEN# I agree preferably donations via the famous # $COL_RESET"
  1076. echo -e "$COL_GREEN# $COL_YELLOW Paysafecard secure payment system$COL_GREEN. Of course you # $COL_RESET"
  1077. echo -e "$COL_GREEN# must have a valid bank account to donate. # $COL_RESET"
  1078. echo -e "$COL_GREEN# Most regulars with shopping online using Paysafecard. # $COL_RESET"
  1079. echo -e "$COL_GREEN# For this,$COL_CYAN contact me by E-mail$COL_GREEN and providing me # $COL_RESET"
  1080. echo -e "$COL_GREEN# $COL_MAGENTA the 16-digit code of the amount of your choice ! $COL_GREEN # $COL_RESET"
  1081. echo -e "$COL_GREEN# -------------------- # $COL_RESET"
  1082. echo -e "$COL_GREEN# $COL_RED Buy Online $COL_GREEN # $COL_RESET"
  1083. echo -e "$COL_GREEN# 1. Join$COL_YELLOW WKV.com $COL_GREEN # $COL_RESET"
  1084. echo -e "$COL_GREEN# 2. Buy a Paysafecard$COL_RED in EURO (€) only$COL_GREEN ! # $COL_RESET"
  1085. echo -e "$COL_GREEN# 3. You will receive a 16-digit code by email. # $COL_RESET"
  1086. echo -e "$COL_GREEN# # $COL_RESET"
  1087. echo -e "$COL_GREEN# $COL_RED Buy in Store $COL_GREEN # $COL_RESET"
  1088. echo -e "$COL_GREEN# 1. Locate a store on paysafecard outlets # $COL_RESET"
  1089. echo -e "$COL_GREEN# $COL_YELLOW paysafecard.com/en-us/buy/find-sales-outlets $COL_GREEN # $COL_RESET"
  1090. echo -e "$COL_GREEN# 2. See you in: Tobacco, Press House, Video Game Store # $COL_RESET"
  1091. echo -e "$COL_GREEN# 3. Buy a Paysafecard$COL_RED in EURO (€) only$COL_GREEN ! # $COL_RESET"
  1092. echo -e "$COL_GREEN# 4. You will be given a ticket with a 16-digit code. # $COL_RESET"
  1093. echo -e "$COL_GREEN# # $COL_RESET"
  1094. echo -e "$COL_GREEN# $COL_RED Where sent the donate ? $COL_GREEN # $COL_RESET"
  1095. echo -e "$COL_GREEN# Now you can send me by e-mail the 16-digit code. # $COL_RESET"
  1096. echo -e "$COL_GREEN# $COL_BLUE XECUTIONER.FR@GMAIL.COM $COL_GREEN # $COL_RESET"
  1097. echo -e "$COL_GREEN# -------------------- # $COL_RESET"
  1098. echo -e "$COL_GREEN# $COL_CYAN OPTIONAL:$COL_RED DONATION IN BITCOIN $COL_GREEN # $COL_RESET"
  1099. echo -e "$COL_GREEN# $COL_YELLOW You can also make a donation in bitcoin$COL_GREEN. $COL_GREEN # $COL_RESET"
  1100. echo -e "$COL_GREEN# To do this, contact me by e-mail. # $COL_RESET"
  1101. echo -e "$COL_GREEN######################################################### $COL_RESET"
  1102. echo ""
  1103. restart_script
  1104. }
  1105.  
  1106. ######### PREMIUM #########
  1107. set_premium(){
  1108. clear
  1109. echo -e "$COL_GREEN######################################################### $COL_RESET"
  1110. 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"
  1111. printf "$COL_GREEN SinusBot AIO Installer$COL_RED $scriptversion$COL_GREEN #$COL_RESET\n"
  1112. echo -e "$COL_GREEN######################################################### $COL_RESET"
  1113. echo -e "$COL_GREEN# For get the$COL_RED PREMIUM version$COL_GREEN of my script. $COL_GREEN # $COL_RESET"
  1114. echo -e "$COL_GREEN# Please$COL_YELLOW make a donation$COL_GREEN of$COL_RED 25 euro (€)$COL_GREEN. $COL_GREEN # $COL_RESET"
  1115. echo -e "$COL_GREEN# Once received the donation,$COL_MAGENTA you will receive $COL_GREEN # $COL_RESET"
  1116. echo -e "$COL_GREEN# by email$COL_MAGENTA your access$COL_GREEN to the$COL_RED PREMIUM version$COL_GREEN ! # $COL_RESET"
  1117. echo -e "$COL_GREEN# # $COL_RESET"
  1118. echo -e "$COL_GREEN# $COL_YELLOW LIST OF ALL ADVANTAGES: $COL_GREEN # $COL_RESET"
  1119. echo -e "$COL_GREEN# $COL_GREEN No password, no expiration date and all updates ! $COL_GREEN # $COL_RESET"
  1120. echo -e "$COL_GREEN# $COL_GREEN Possibility to create more bots 20, 30, 50 ... $COL_GREEN # $COL_RESET"
  1121. echo -e "$COL_GREEN# Therefore,$COL_CYAN VALID FOR LIFETIME$COL_GREEN ! # $COL_RESET"
  1122. echo -e "$COL_GREEN######################################################### $COL_RESET"
  1123. echo -e "$COL_RESET"
  1124.  
  1125. case $answer in
  1126. *)
  1127. printf "${COL_GREEN}Press any key to learn more...\n${NC}"
  1128. read -n 1
  1129. clear
  1130. set_donation
  1131. ;;
  1132. esac
  1133. }
  1134.  
  1135. ######### CREDITS #########
  1136. set_credits(){
  1137. clear
  1138. echo -e "$COL_GREEN######################################################### $COL_RESET"
  1139. echo -e "$COL_GREEN# $COL_GREEN Credits # $COL_RESET"
  1140. echo -e "$COL_GREEN######################################################### $COL_RESET"
  1141. echo -e "$COL_GREEN# $COL_YELLOW SPECIAL THANKS TO $COL_GREEN # $COL_RESET"
  1142. echo -e "$COL_GREEN# - Team$COL_RED SinusBot / Flyth$COL_GREEN for making the SinusBot # $COL_RESET"
  1143. echo -e "$COL_GREEN# -$COL_RED Supervisor$COL_GREEN for assistance of my script # $COL_RESET"
  1144. echo -e "$COL_GREEN# -$COL_RED hASVAN$COL_GREEN for assistance of my script # $COL_RESET"
  1145. echo -e "$COL_GREEN# -$COL_RED Joxi$COL_GREEN for the tutorials in videos # $COL_RESET"
  1146. echo -e "$COL_GREEN# -$COL_RED Sa7er$COL_GREEN for have tried and report the bugs # $COL_RESET"
  1147. echo -e "$COL_GREEN######################################################### $COL_RESET"
  1148. echo ""
  1149. restart_script
  1150. }
  1151.  
  1152. ##### CHECK VERISON SCRIPT #####
  1153. check_version(){
  1154. if [ $check_for_updates -eq 1 ]; then
  1155. printf "$COL_RED Checking for updates... $COL_RESET"
  1156. curl -s -m $timeout --head $call_home/sinusbot_aio_version.php | head -n 1 | grep "HTTP/1.[01] [2].." > /dev/$
  1157. if [ $? = 1 ];
  1158. 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}"
  1159. else
  1160. sversion=$(wget $call_home/sinusbot_aio_version.php?version -q -O -)
  1161. if [ $sversion \> $scriptversion ];
  1162. then printf "${COLOR1}\nA new script version is available, downloading it...\n${NC}"
  1163. update_script
  1164. else printf "$COL_YELLOW ...script is up to date !$COL_GREEN$COL_RESET \n${NC}"
  1165. fi
  1166. fi
  1167. fi
  1168. }
  1169. update_script(){
  1170. slink=$(wget $call_home/sinusbot_aio_version.php?link -q -O -)
  1171. wget $slink -q -O sinusbot_aio_installer_$sversion
  1172. chmod +x sinusbot_aio_installer_$sversion
  1173. rm sinusbot_aio_installer_$scriptversion
  1174. ./sinusbot_aio_installer_$sversion
  1175. }
  1176.  
  1177. ##### RESTART SCRIPT #####
  1178. restart_script(){
  1179. printf "${COL_GREEN}Done. Press any key to continue...\n${NC}"
  1180. read -n 1
  1181. clear
  1182. $0
  1183. }
  1184.  
  1185. restart_script2(){
  1186. printf "${COL_RED}Bad Choice. Try Again !\n${NC}"
  1187. read -n 1
  1188. clear
  1189. $0
  1190. }
  1191.  
  1192. restart_script3(){
  1193. printf "${COL_RED}$COL_RED Coming Soon !\n${NC}"
  1194. read -n 1
  1195. clear
  1196. $0
  1197. }
  1198.  
  1199. ##### CREATE USER #####
  1200. set_user(){
  1201. printf "${COLOR1}Choose a user for installation. If the user does not exist, it will be created: ${NC}"
  1202. read answer
  1203. case $answer in
  1204. [rR][oO0][oO0][tT])
  1205. printf "${COLOR1}User ${COLOR2}$answer${COLOR1} is not valid. Aborting...\n${NC}"
  1206. exit 1
  1207. ;;
  1208. [a-zA-Z0-9]*)
  1209. teamspeakuser="$answer"
  1210. if id -u "$sinusbotuser" >/dev/null 2>&1;
  1211. then if [ ! -d /home/$sinusbotuser/ ]
  1212. then printf "${COLOR1}Could not find home directory, creating it..\n${NC}"
  1213. mkdir /home/$sinusbotuser
  1214. chown $sinusbotuser:$sinusbotuser /home/$sinusbotuser
  1215. fi
  1216. else
  1217. printf "${COLOR1}User does not exist. Creating it...\n${NC}"
  1218. adduser $sinusbotuser
  1219. fi
  1220. ;;
  1221. *) printf "${COLOR1}User '$answer' is not valid. Aborting...\n${NC}"
  1222. exit 1
  1223. ;;
  1224. esac
  1225. }
  1226.  
  1227. ##### MENU #####
  1228. show_script_password
  1229. show_SinusBotInstall
  1230. check_version
  1231. show_expires
  1232. show_SinusBotScripts
  1233. show_SinusBotAutoScripts
  1234.  
  1235. case "$main_menu" in
  1236. # Note variable is quoted.
  1237.  
  1238. "0" )
  1239. echo -e "$COL_YELLOW This is a$COL_GREEN Easter Eggs$COL_YELLOW !$COL_RESET"
  1240. echo ""
  1241. restart_script3
  1242. ;;
  1243.  
  1244. "1" )
  1245. set_dependencies
  1246. set_sinusbot_install
  1247. set_ts3_client_install
  1248. set_setting_sinusbot
  1249. set_created_sinusbot_1instance
  1250. set_launch_sinusbot_1instance
  1251. ;;
  1252.  
  1253. "2" )
  1254. set_dependencies
  1255. set_sinusbot_install
  1256. set_ts3_client_install
  1257. set_setting_sinusbot
  1258. set_created_sinusbot_2instances
  1259. set_launch_sinusbot_2instances
  1260. ;;
  1261.  
  1262. "3" )
  1263. set_dependencies
  1264. set_sinusbot_install
  1265. set_ts3_client_install
  1266. set_setting_sinusbot
  1267. set_created_sinusbot_3instances
  1268. set_launch_sinusbot_3instances
  1269. ;;
  1270.  
  1271. "4" )
  1272. set_dependencies
  1273. set_sinusbot_install
  1274. set_ts3_client_install
  1275. set_setting_sinusbot
  1276. set_created_sinusbot_5instances
  1277. set_launch_sinusbot_5instances
  1278. ;;
  1279.  
  1280. "5" )
  1281. set_premium
  1282. ;;
  1283.  
  1284. "6" )
  1285. set_dependencies
  1286. set_sinusbot_install
  1287. set_ts3_client_install
  1288. set_setting_sinusbot
  1289. set_created_sinusbot_15instances
  1290. set_launch_sinusbot_15instances
  1291. ;;
  1292.  
  1293. "7" )
  1294. set_premium
  1295. ;;
  1296.  
  1297. "r" | "R" )
  1298. set_uninstall
  1299. ;;
  1300.  
  1301. "a" | "A" )
  1302. set_auto_start
  1303. ;;
  1304.  
  1305. "u" | "U" )
  1306. set_update
  1307. ;;
  1308.  
  1309. "c" | "C" )
  1310. set_credits
  1311. ;;
  1312.  
  1313. "l" | "L" )
  1314. set_changelog
  1315. ;;
  1316.  
  1317. "d" | "D" )
  1318. set_donation
  1319. ;;
  1320.  
  1321. "p" | "P" )
  1322. set_premium
  1323. ;;
  1324.  
  1325. "q" | "Q" )
  1326. echo -e "$COL_GREEN Goodbye and see you again on$COL_RED R4P3.net $COL_RESET"
  1327. echo ""
  1328. ;;
  1329.  
  1330. * )
  1331. # Default option.
  1332. restart_script2
  1333. ;;
  1334.  
  1335. esac
  1336. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement