Advertisement
Guest User

Untitled

a guest
Apr 14th, 2017
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 114.80 KB | None | 0 0
  1. #!/bin/bash
  2. #SinusBot All In One install script EXCLUSIVE TO TS3HOST :)
  3. #Written by: gBretas to TS3HOST
  4.  
  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="0"                                       #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. scriptversion="1.22"                                        #scriptversion
  29. scriptpassword="ruan123"                                    #scriptpassword
  30. datescriptversion="13.03.2017"                              #datescriptversion
  31. scriptsinusbotversion="0.9.18-8499d2c"                      #scriptsinusbotversion
  32. teamspeakclientversion="3.0.19.4"                           #scriptsinusbotversion
  33. scriptexpiration="12.05.2020"                               #scriptexpiration
  34. call_home="http://www.r4p3.cf"                              #check for updates
  35.  
  36. call_donate_received="https://api.gbretas.com/sinus/donate.php?donate_received="    #check for donations received
  37. call_donation_goal="https://api.gbretas.com/sinus/donate.php?donation_goal="        #check for donation goal
  38.  
  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.  
  42. sinusbotlastversion="https://api.gbretas.com/sinus/dl/sinusbot-0.9.18-8499d2c.tar.bz2"  #version of sinusbot
  43. sinusbotlastversion2="sinusbot-0.9.18-8499d2c.tar.bz2"                          #source file of sinusbot
  44.  
  45. youtubeconf="https://api.gbretas.com/sinus/dl/youtube-dl.conf"                  #YoutubeDl Config
  46. youtubeconf2="youtube-dl.conf"                                                  #Name of youtubedl.conf
  47.  
  48. sinusbotautostart="https://api.gbretas.com/sinus/dl/autostart/sinusbot_aio_autostart.sh"        #Autostart script for sinusbots
  49.  
  50. sinusbotstart2bots="https://api.gbretas.com/sinus/dl/autostart/2_sinusbots.sh"  #Start file of sinusbot
  51. sinusbotstart2bots2="2_sinusbot.sh"                                             #Name of start file of sinusbot
  52.  
  53. sinusbotstart4bots="https://api.gbretas.com/sinus/dl/autostart/4_sinusbots.sh"  #Start file of sinusbot
  54. sinusbotstart4bots4="4_sinusbots.sh"                                            #Name of start file of sinusbot
  55.  
  56. sinusbotstart6bots="https://api.gbretas.com/sinus/dl/autostart/6_sinusbots.sh"  #Start file of sinusbot
  57. sinusbotstart6bots6="6_sinusbots.sh"                                            #Name of start file of sinusbot
  58.  
  59. sinusbotstart10bots="https://api.gbretas.com/sinus/dl/autostart/10_sinusbots.sh"    #Start file of sinusbot
  60. sinusbotstart10bots10="10_sinusbots.sh"                                         #Name of start file of sinusbot
  61.  
  62. sinusbotstart20bots="https://api.gbretas.com/sinus/dl/autostart/20_sinusbot.sh" #Start file of sinusbot
  63. sinusbotstart20bots20="20_sinusbots.sh"                                         #Name of start file of sinusbot
  64.  
  65. sinusbotstart30bots="https://api.gbretas.com/sinus/dl/autostart/30_sinusbots.sh"    #Start file of sinusbot
  66. sinusbotstart30bots30="30_sinusbots.sh"                                         #Name of start file of sinusbot
  67.  
  68. sinusbotstart50bots="https://api.gbretas.com/sinus/dl/autostart/50_sinusbots.sh"    #Start file of sinusbot
  69. sinusbotstart50bots50="50_sinusbots.sh"                                         #Name of start file of sinusbot
  70.  
  71. ipaddress=`ip route get 8.8.8.8 | awk '{print $NF; exit}'`                      #Your server IP adress
  72. sinusbotdir="/opt/"                                                             #Don't change this!
  73.  
  74. #################################################################################################
  75. ##### MENU SCRIPT PASSWORD #####
  76. clear
  77. show_script_password(){
  78. echo -e "$COL_GREEN######################################################### $COL_RESET"
  79. echo -e "$COL_GREEN#      SinusBot Install Script AIO$COL_RED v$scriptversion$COL_GREEN by$COL_RED gBretas$COL_GREEN     # $COL_RESET"
  80. echo -e "$COL_GREEN#                  Acesse $COL_RED gBretas.com $COL_GREEN                 # $COL_RESET"
  81. echo -e "$COL_GREEN######################################################### $COL_RESET"
  82. echo -e "$COL_GREEN#                $COL_RED Digite a senha aqui !!!              $COL_GREEN # $COL_RESET"
  83. echo -e "$COL_GREEN######################################################### $COL_RESET"
  84. echo -e "Senha: $COL_RESET"
  85. read answer
  86. case $answer in
  87. "$scriptpassword")
  88. printf "$COL_GREEN A senha $COL_YELLOW$answer$COL_GREEN esta correta...\n${NC}"
  89. sleep 2
  90. clear
  91. ;;
  92. "q" | "Q")
  93. echo -e "$COL_GREEN Tchau e te vejo em breve :)$COL_RESET"
  94. echo ""
  95. exit 1
  96. ;;
  97.  
  98. *)
  99. printf "$COL_GREEN A senha $COL_RED$answer$COL_GREEN nao esta correta ...\n${NC}"
  100. #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"
  101. echo ""
  102. exit 1
  103. ;;
  104. esac
  105. }
  106.  
  107. ##### MENU NORMAL #####
  108. show_SinusBotInstall(){
  109. printf "$COL_GREEN######################################################### $COL_RESET\n"
  110. printf "$COL_GREEN#    SinusBot Install Script AIO$COL_RED v$scriptversion$COL_GREEN  # $COL_RESET\n"
  111. printf "$COL_GREEN######################################################### $COL_RESET\n"
  112. }
  113. show_expires(){
  114. printf "$COL_GREEN######################################################### $COL_RESET\n"
  115. printf "$COL_GREEN#        $COL_RED INFO:$COL_BLUEB This installation script expires on $COL_RESET $COL_GREEN   # $COL_RESET\n"
  116. printf "$COL_GREEN#                        $COL_MAGENTAB $scriptexpiration $COL_RESET $COL_GREEN                  # $COL_RESET\n"
  117. }
  118. show_SinusBotScripts(){
  119. printf "$COL_GREEN######################################################### $COL_RESET\n"
  120. printf "$COL_GREEN#                $COL_YELLOW SinusBot v$scriptsinusbotversion $COL_RESET $COL_GREEN            # $COL_RESET\n"
  121. printf "$COL_GREEN#               $COL_YELLOW Auto Installation Script $COL_RESET $COL_GREEN             # $COL_RESET\n"
  122. printf "$COL_GREEN#      $COL_YELLOW With various Scripts, Languages and Themes $COL_RESET $COL_GREEN    # $COL_RESET\n"
  123. }
  124. show_SinusBotAutoScripts(){
  125. printf "$COL_GREEN######################################################### $COL_RESET\n"
  126. printf "$COL_GREEN#          $COL_RED ##### PLEASE MAKE YOUR CHOICE ! ##### $COL_RESET $COL_GREEN     # $COL_RESET\n"
  127. printf "$COL_GREEN#           $COL_RED 1)$COL_GREEN  2 SinusBots with 1 instance            # $COL_RESET\n"
  128. printf "$COL_GREEN#           $COL_RED 2)$COL_GREEN  4 SinusBots with 2 instances           # $COL_RESET\n"
  129. printf "$COL_GREEN#           $COL_RED 3)$COL_GREEN  6 SinusBots with 3 instances           # $COL_RESET\n"
  130. printf "$COL_GREEN#           $COL_RED 4)$COL_GREEN 10 SinusBots with 5 instances           # $COL_RESET\n"
  131. printf "$COL_GREEN#           $COL_RED 5)$COL_GREEN 20 SinusBots with 10 instances          # $COL_RESET\n"
  132. printf "$COL_GREEN#           $COL_RED 6)$COL_GREEN 30 SinusBots with 15 instances          # $COL_RESET\n"
  133. printf "$COL_GREEN#           $COL_RED 7)$COL_GREEN 50 SinusBots with 25 instances          # $COL_RESET\n"
  134. printf "$COL_GREEN#           $COL_RED R)$COL_GREEN Undo all changes made by the script     # $COL_RESET\n"
  135. printf "$COL_GREEN#           $COL_RED A)$COL_GREEN AutoStart Script                        # $COL_RESET\n"
  136. printf "$COL_GREEN#           $COL_RED U)$COL_GREEN Update SinusBots                        # $COL_RESET\n"
  137. #printf "$COL_GREEN#           $COL_RED L)$COL_GREEN Show Changelog                          # $COL_RESET\n"
  138. #printf "$COL_GREEN#           $COL_RED C)$COL_GREEN Show Credits                            # $COL_RESET\n"
  139. #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"
  140. #printf "$COL_GREEN SinusBot AIO Installer$COL_RED $scriptversion$COL_GREEN #$COL_RESET\n"
  141. printf "$COL_GREEN#           $COL_RED Q)$COL_GREEN Quit                                    # $COL_RESET\n"
  142. printf "$COL_GREEN######################################################### $COL_RESET\n"
  143. printf "Resposta: $COL_RESET"
  144. read main_menu
  145. }
  146.  
  147. ###### DEPENDENCIES INSTALLATION #######
  148. set_dependencies(){
  149. sleep 1
  150. echo -e "$COL_GREEN  $COL_YELLOW 1) Let's start by installing several dependencies $COL_RESET $COL_GREEN  $COL_RESET"
  151. sleep 3
  152. echo -e "$COL_GREEN    $COL_RESET $COL_RED WARNING$COL_RESET : Select$COL_GREEN yes$COL_RESET for everything !           $COL_GREEN  $COL_RESET"
  153. sleep 5
  154. set_sources_list
  155. echo -e "$COL_GREEN    $COL_RESET $COL_RED WARNING$COL_RESET : Select$COL_GREEN yes$COL_RESET for everything !           $COL_GREEN  $COL_RESET"
  156. sleep 5
  157. apt-get -y update
  158. apt-get -y install -t sid libc6
  159. echo -e "$COL_GREEN    $COL_RESET $COL_RED WARNING$COL_RESET : Select$COL_GREEN yes$COL_RESET for everything !           $COL_GREEN  $COL_RESET"
  160. sleep 5
  161. apt-get -y install screen curl htop sudo bzip2 curl
  162. apt-get -y install x11vnc xvfb libxcursor1 ca-certificates bzip2 libglib2.0-0 -y
  163. update-ca-certificates
  164. echo -e "$COL_GREEN      Dependencies done ...                             $COL_RESET"
  165. echo ""
  166. }
  167.  
  168. ##### SET SOURCES LIST #####
  169. set_sources_list(){
  170. grep -v '.*httpredir.*' /etc/apt/sources.list > /etc/apt/sources.list_temporary
  171. sed -i '1ideb http://httpredir.debian.org/debian sid main contrib non-free' /etc/apt/sources.list
  172. sed -i '1ideb-src http://httpredir.debian.org/debian sid main contrib non-free' /etc/apt/sources.list
  173. }
  174.  
  175. ##### SINUSBOT INSTALLATION #####
  176. set_sinusbot_install(){
  177. echo -e "$COL_GREEN  $COL_YELLOW 2) Installation of SinusBot v$scriptsinusbotversion $COL_RESET $COL_GREEN              $COL_RESET"
  178. sleep 5
  179. mkdir /opt/ts3soundboard
  180. cd /opt/ts3soundboard
  181. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  182. tar -xjf $sinusbotlastversion2
  183. rm -R $sinusbotlastversion2
  184. cp config.ini.dist config.ini
  185. echo -e "$COL_GREEN      SinusBot install done ...                                 $COL_RESET"
  186. echo ""
  187. }
  188.  
  189. ##### TEAMSPEAK 3 CLIENT INSTALLATION #####
  190. set_ts3_client_install(){
  191. echo -e "$COL_GREEN  $COL_YELLOW 3) TeamSpeak 3 client installation v$teamspeakclientversion $COL_RESET $COL_GREEN       $COL_RESET"
  192. 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"
  193. 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"
  194. wget $ts3clientversion
  195. chmod 0755 $ts3clientversion2
  196. su root -c "./$ts3clientversion2"
  197. echo -e "$COL_GREEN      TeamSpeak 3 Client done ...                       $COL_RESET"
  198. rm -R $ts3clientversion2
  199. echo ""
  200. }
  201.  
  202. ##### SETTING SINUSBOT #####
  203. set_setting_sinusbot(){
  204. echo -e "$COL_GREEN  $COL_YELLOW 4) Setting SinusBot $COL_RESET $COL_GREEN                                $COL_RESET"
  205. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/plugins
  206. chmod 0755 sinusbot
  207. sudo apt-get -y install youtube-dl
  208. sudo wget https://yt-dl.org/latest/youtube-dl 2>/dev/null -O /usr/local/bin/youtube-dl
  209. sudo chmod a+x /usr/local/bin/youtube-dl
  210. hash -r
  211. sudo youtube-dl --update
  212. sed -i '1iYoutubeDLPath = "/usr/local/bin/youtube-dl"' /opt/ts3soundboard/config.ini
  213. wget --no-check-certificate $youtubeconf 2>/dev/null -O /etc/$youtubeconf2; chmod 644 /etc/$youtubeconf2
  214. echo -e "$COL_GREEN      Setting SinusBot done ...                         $COL_RESET"
  215. echo ""
  216. }
  217.  
  218. ##### CREATION SINUSBOT 1 INSTANCE #####
  219. set_created_sinusbot_1instance(){
  220. echo -e "$COL_GREEN  $COL_YELLOW 5) Creating SinusBot $COL_RESET $COL_GREEN                             $COL_RESET"
  221. iptables -A SERVICES -p tcp -m multiport --dports 80,8100:8130,8000,443 -m comment --comment "Allow: Webserver" -j ACCEPT
  222. iptables -A INPUT -p tcp --dport 8101 -m state --state NEW -j ACCEPT
  223. cd /opt/
  224. wget --no-check-certificate $sinusbotstart2bots 2>/dev/null -O $sinusbotstart2bots2; chmod +x $sinusbotstart2bots2
  225. sed -i -e "s/ListenPort = 8087/ListenPort = 8101/g" "/opt/ts3soundboard/config.ini"
  226. echo -e "$COL_GREEN      SinusBot created done ...                         $COL_RESET"
  227. echo ""
  228. }
  229.  
  230. ##### CREATION SINUSBOT 2 INSTANCES #####
  231. set_created_sinusbot_2instances(){
  232. echo -e "$COL_GREEN  $COL_YELLOW 5) Creating SinusBots $COL_RESET $COL_GREEN                             $COL_RESET"
  233. iptables -A SERVICES -p tcp -m multiport --dports 80,8100:8130,8000,443 -m comment --comment "Allow: Webserver" -j ACCEPT
  234. iptables -A INPUT -p tcp --dport 8101 -m state --state NEW -j ACCEPT
  235. iptables -A INPUT -p tcp --dport 8102 -m state --state NEW -j ACCEPT
  236. cd /opt/
  237. wget --no-check-certificate $sinusbotstart4bots 2>/dev/null -O $sinusbotstart4bots4; chmod +x $sinusbotstart4bots4
  238. cp -r ts3soundboard/ ts3soundboard2
  239. sed -i -e "s/ListenPort = 8087/ListenPort = 8101/g" "/opt/ts3soundboard/config.ini"
  240. sed -i -e "s/ListenPort = 8087/ListenPort = 8102/g" "/opt/ts3soundboard2/config.ini"
  241. sed -i -e "s/ts3soundboard/ts3soundboard2/g" "/opt/ts3soundboard2/config.ini"
  242. echo -e "$COL_GREEN      SinusBots created done ...                         $COL_RESET"
  243. echo ""
  244. }
  245.  
  246. ##### CREATION SINUSBOT 3 INSTANCES #####
  247. set_created_sinusbot_3instances(){
  248. echo -e "$COL_GREEN  $COL_YELLOW 5) Creating SinusBots $COL_RESET $COL_GREEN                             $COL_RESET"
  249. iptables -A SERVICES -p tcp -m multiport --dports 80,8100:8130,8000,443 -m comment --comment "Allow: Webserver" -j ACCEPT
  250. iptables -A INPUT -p tcp --dport 8101 -m state --state NEW -j ACCEPT
  251. iptables -A INPUT -p tcp --dport 8102 -m state --state NEW -j ACCEPT
  252. iptables -A INPUT -p tcp --dport 8103 -m state --state NEW -j ACCEPT
  253. cd /opt/
  254. wget --no-check-certificate $sinusbotstart6bots 2>/dev/null -O $sinusbotstart6bots6; chmod +x $sinusbotstart6bots6
  255. cp -r ts3soundboard/ ts3soundboard2
  256. cp -r ts3soundboard/ ts3soundboard3
  257. sed -i -e "s/ListenPort = 8087/ListenPort = 8101/g" "/opt/ts3soundboard/config.ini"
  258. sed -i -e "s/ListenPort = 8087/ListenPort = 8102/g" "/opt/ts3soundboard2/config.ini"
  259. sed -i -e "s/ListenPort = 8087/ListenPort = 8103/g" "/opt/ts3soundboard3/config.ini"
  260. sed -i -e "s/ts3soundboard/ts3soundboard2/g" "/opt/ts3soundboard2/config.ini"
  261. sed -i -e "s/ts3soundboard/ts3soundboard3/g" "/opt/ts3soundboard3/config.ini"
  262. echo -e "$COL_GREEN      SinusBots created done ...                         $COL_RESET"
  263. echo ""
  264. }
  265.  
  266. ##### CREATION SINUSBOT 5 INSTANCES #####
  267. set_created_sinusbot_5instances(){
  268. echo -e "$COL_GREEN  $COL_YELLOW 5) Creating SinusBots $COL_RESET $COL_GREEN                             $COL_RESET"
  269. iptables -A SERVICES -p tcp -m multiport --dports 80,8100:8130,8000,443 -m comment --comment "Allow: Webserver" -j ACCEPT
  270. iptables -A INPUT -p tcp --dport 8101 -m state --state NEW -j ACCEPT
  271. iptables -A INPUT -p tcp --dport 8102 -m state --state NEW -j ACCEPT
  272. iptables -A INPUT -p tcp --dport 8103 -m state --state NEW -j ACCEPT
  273. iptables -A INPUT -p tcp --dport 8104 -m state --state NEW -j ACCEPT
  274. iptables -A INPUT -p tcp --dport 8105 -m state --state NEW -j ACCEPT
  275. cd /opt/
  276. wget --no-check-certificate $sinusbotstart10bots 2>/dev/null -O $sinusbotstart10bots10; chmod +x $sinusbotstart10bots10
  277. cp -r ts3soundboard/ ts3soundboard2
  278. cp -r ts3soundboard/ ts3soundboard3
  279. cp -r ts3soundboard/ ts3soundboard4
  280. cp -r ts3soundboard/ ts3soundboard5
  281. sed -i -e "s/ListenPort = 8087/ListenPort = 8101/g" "/opt/ts3soundboard/config.ini"
  282. sed -i -e "s/ListenPort = 8087/ListenPort = 8102/g" "/opt/ts3soundboard2/config.ini"
  283. sed -i -e "s/ListenPort = 8087/ListenPort = 8103/g" "/opt/ts3soundboard3/config.ini"
  284. sed -i -e "s/ListenPort = 8087/ListenPort = 8104/g" "/opt/ts3soundboard4/config.ini"
  285. sed -i -e "s/ListenPort = 8087/ListenPort = 8105/g" "/opt/ts3soundboard5/config.ini"
  286. sed -i -e "s/ts3soundboard/ts3soundboard2/g" "/opt/ts3soundboard2/config.ini"
  287. sed -i -e "s/ts3soundboard/ts3soundboard3/g" "/opt/ts3soundboard3/config.ini"
  288. sed -i -e "s/ts3soundboard/ts3soundboard4/g" "/opt/ts3soundboard4/config.ini"
  289. sed -i -e "s/ts3soundboard/ts3soundboard5/g" "/opt/ts3soundboard5/config.ini"
  290. echo -e "$COL_GREEN      SinusBots created done ...                         $COL_RESET"
  291. echo ""
  292. }
  293. ##### CREATION SINUSBOT 10 INSTANCES #####
  294. set_created_sinusbot_10instances(){
  295. echo -e "$COL_GREEN  $COL_YELLOW 5) Creating SinusBots $COL_RESET $COL_GREEN                             $COL_RESET"
  296. iptables -A SERVICES -p tcp -m multiport --dports 80,8100:8130,8000,443 -m comment --comment "Allow: Webserver" -j ACCEPT
  297. iptables -A INPUT -p tcp --dport 8101 -m state --state NEW -j ACCEPT
  298. iptables -A INPUT -p tcp --dport 8102 -m state --state NEW -j ACCEPT
  299. iptables -A INPUT -p tcp --dport 8103 -m state --state NEW -j ACCEPT
  300. iptables -A INPUT -p tcp --dport 8104 -m state --state NEW -j ACCEPT
  301. iptables -A INPUT -p tcp --dport 8105 -m state --state NEW -j ACCEPT
  302. iptables -A INPUT -p tcp --dport 8106 -m state --state NEW -j ACCEPT
  303. iptables -A INPUT -p tcp --dport 8107 -m state --state NEW -j ACCEPT
  304. iptables -A INPUT -p tcp --dport 8108 -m state --state NEW -j ACCEPT
  305. iptables -A INPUT -p tcp --dport 8109 -m state --state NEW -j ACCEPT
  306. iptables -A INPUT -p tcp --dport 8110 -m state --state NEW -j ACCEPT
  307. cd /opt/
  308. wget --no-check-certificate $sinusbotstart20bots 2>/dev/null -O $sinusbotstart20bots20; chmod +x $sinusbotstart20bots20
  309. cp -r ts3soundboard/ ts3soundboard2
  310. cp -r ts3soundboard/ ts3soundboard3
  311. cp -r ts3soundboard/ ts3soundboard4
  312. cp -r ts3soundboard/ ts3soundboard5
  313. cp -r ts3soundboard/ ts3soundboard6
  314. cp -r ts3soundboard/ ts3soundboard7
  315. cp -r ts3soundboard/ ts3soundboard8
  316. cp -r ts3soundboard/ ts3soundboard9
  317. cp -r ts3soundboard/ ts3soundboard10
  318. sed -i -e "s/ListenPort = 8087/ListenPort = 8101/g" "/opt/ts3soundboard/config.ini"
  319. sed -i -e "s/ListenPort = 8087/ListenPort = 8102/g" "/opt/ts3soundboard2/config.ini"
  320. sed -i -e "s/ListenPort = 8087/ListenPort = 8103/g" "/opt/ts3soundboard3/config.ini"
  321. sed -i -e "s/ListenPort = 8087/ListenPort = 8104/g" "/opt/ts3soundboard4/config.ini"
  322. sed -i -e "s/ListenPort = 8087/ListenPort = 8105/g" "/opt/ts3soundboard5/config.ini"
  323. sed -i -e "s/ListenPort = 8087/ListenPort = 8106/g" "/opt/ts3soundboard6/config.ini"
  324. sed -i -e "s/ListenPort = 8087/ListenPort = 8107/g" "/opt/ts3soundboard7/config.ini"
  325. sed -i -e "s/ListenPort = 8087/ListenPort = 8108/g" "/opt/ts3soundboard8/config.ini"
  326. sed -i -e "s/ListenPort = 8087/ListenPort = 8109/g" "/opt/ts3soundboard9/config.ini"
  327. sed -i -e "s/ListenPort = 8087/ListenPort = 8110/g" "/opt/ts3soundboard10/config.ini"
  328. sed -i -e "s/ts3soundboard/ts3soundboard2/g" "/opt/ts3soundboard2/config.ini"
  329. sed -i -e "s/ts3soundboard/ts3soundboard3/g" "/opt/ts3soundboard3/config.ini"
  330. sed -i -e "s/ts3soundboard/ts3soundboard4/g" "/opt/ts3soundboard4/config.ini"
  331. sed -i -e "s/ts3soundboard/ts3soundboard5/g" "/opt/ts3soundboard5/config.ini"
  332. sed -i -e "s/ts3soundboard/ts3soundboard6/g" "/opt/ts3soundboard6/config.ini"
  333. sed -i -e "s/ts3soundboard/ts3soundboard7/g" "/opt/ts3soundboard7/config.ini"
  334. sed -i -e "s/ts3soundboard/ts3soundboard8/g" "/opt/ts3soundboard8/config.ini"
  335. sed -i -e "s/ts3soundboard/ts3soundboard9/g" "/opt/ts3soundboard9/config.ini"
  336. sed -i -e "s/ts3soundboard/ts3soundboard10/g" "/opt/ts3soundboard10/config.ini"
  337. echo -e "$COL_GREEN      SinusBots created done ...                         $COL_RESET"
  338. echo ""
  339. }
  340. ##### CREATION SINUSBOT 15 INSTANCES #####
  341. set_created_sinusbot_15instances(){
  342. echo -e "$COL_GREEN  $COL_YELLOW 5) Creating SinusBots $COL_RESET $COL_GREEN                             $COL_RESET"
  343. iptables -A SERVICES -p tcp -m multiport --dports 80,8100:8130,8000,443 -m comment --comment "Allow: Webserver" -j ACCEPT
  344. iptables -A INPUT -p tcp --dport 8101 -m state --state NEW -j ACCEPT
  345. iptables -A INPUT -p tcp --dport 8102 -m state --state NEW -j ACCEPT
  346. iptables -A INPUT -p tcp --dport 8103 -m state --state NEW -j ACCEPT
  347. iptables -A INPUT -p tcp --dport 8104 -m state --state NEW -j ACCEPT
  348. iptables -A INPUT -p tcp --dport 8105 -m state --state NEW -j ACCEPT
  349. iptables -A INPUT -p tcp --dport 8106 -m state --state NEW -j ACCEPT
  350. iptables -A INPUT -p tcp --dport 8107 -m state --state NEW -j ACCEPT
  351. iptables -A INPUT -p tcp --dport 8108 -m state --state NEW -j ACCEPT
  352. iptables -A INPUT -p tcp --dport 8109 -m state --state NEW -j ACCEPT
  353. iptables -A INPUT -p tcp --dport 8110 -m state --state NEW -j ACCEPT
  354. iptables -A INPUT -p tcp --dport 8111 -m state --state NEW -j ACCEPT
  355. iptables -A INPUT -p tcp --dport 8112 -m state --state NEW -j ACCEPT
  356. iptables -A INPUT -p tcp --dport 8113 -m state --state NEW -j ACCEPT
  357. iptables -A INPUT -p tcp --dport 8114 -m state --state NEW -j ACCEPT
  358. iptables -A INPUT -p tcp --dport 8115 -m state --state NEW -j ACCEPT
  359. cd /opt/
  360. wget --no-check-certificate $sinusbotstart30bots 2>/dev/null -O $sinusbotstart30bots30; chmod +x $sinusbotstart30bots30
  361. cp -r ts3soundboard/ ts3soundboard2
  362. cp -r ts3soundboard/ ts3soundboard3
  363. cp -r ts3soundboard/ ts3soundboard4
  364. cp -r ts3soundboard/ ts3soundboard5
  365. cp -r ts3soundboard/ ts3soundboard6
  366. cp -r ts3soundboard/ ts3soundboard7
  367. cp -r ts3soundboard/ ts3soundboard8
  368. cp -r ts3soundboard/ ts3soundboard9
  369. cp -r ts3soundboard/ ts3soundboard10
  370. cp -r ts3soundboard/ ts3soundboard11
  371. cp -r ts3soundboard/ ts3soundboard12
  372. cp -r ts3soundboard/ ts3soundboard13
  373. cp -r ts3soundboard/ ts3soundboard14
  374. cp -r ts3soundboard/ ts3soundboard15
  375. sed -i -e "s/ListenPort = 8087/ListenPort = 8101/g" "/opt/ts3soundboard/config.ini"
  376. sed -i -e "s/ListenPort = 8087/ListenPort = 8102/g" "/opt/ts3soundboard2/config.ini"
  377. sed -i -e "s/ListenPort = 8087/ListenPort = 8103/g" "/opt/ts3soundboard3/config.ini"
  378. sed -i -e "s/ListenPort = 8087/ListenPort = 8104/g" "/opt/ts3soundboard4/config.ini"
  379. sed -i -e "s/ListenPort = 8087/ListenPort = 8105/g" "/opt/ts3soundboard5/config.ini"
  380. sed -i -e "s/ListenPort = 8087/ListenPort = 8106/g" "/opt/ts3soundboard6/config.ini"
  381. sed -i -e "s/ListenPort = 8087/ListenPort = 8107/g" "/opt/ts3soundboard7/config.ini"
  382. sed -i -e "s/ListenPort = 8087/ListenPort = 8108/g" "/opt/ts3soundboard8/config.ini"
  383. sed -i -e "s/ListenPort = 8087/ListenPort = 8109/g" "/opt/ts3soundboard9/config.ini"
  384. sed -i -e "s/ListenPort = 8087/ListenPort = 8110/g" "/opt/ts3soundboard10/config.ini"
  385. sed -i -e "s/ListenPort = 8087/ListenPort = 8111/g" "/opt/ts3soundboard11/config.ini"
  386. sed -i -e "s/ListenPort = 8087/ListenPort = 8112/g" "/opt/ts3soundboard12/config.ini"
  387. sed -i -e "s/ListenPort = 8087/ListenPort = 8113/g" "/opt/ts3soundboard13/config.ini"
  388. sed -i -e "s/ListenPort = 8087/ListenPort = 8114/g" "/opt/ts3soundboard14/config.ini"
  389. sed -i -e "s/ListenPort = 8087/ListenPort = 8115/g" "/opt/ts3soundboard15/config.ini"
  390. sed -i -e "s/ts3soundboard/ts3soundboard2/g" "/opt/ts3soundboard2/config.ini"
  391. sed -i -e "s/ts3soundboard/ts3soundboard3/g" "/opt/ts3soundboard3/config.ini"
  392. sed -i -e "s/ts3soundboard/ts3soundboard4/g" "/opt/ts3soundboard4/config.ini"
  393. sed -i -e "s/ts3soundboard/ts3soundboard5/g" "/opt/ts3soundboard5/config.ini"
  394. sed -i -e "s/ts3soundboard/ts3soundboard6/g" "/opt/ts3soundboard6/config.ini"
  395. sed -i -e "s/ts3soundboard/ts3soundboard7/g" "/opt/ts3soundboard7/config.ini"
  396. sed -i -e "s/ts3soundboard/ts3soundboard8/g" "/opt/ts3soundboard8/config.ini"
  397. sed -i -e "s/ts3soundboard/ts3soundboard9/g" "/opt/ts3soundboard9/config.ini"
  398. sed -i -e "s/ts3soundboard/ts3soundboard10/g" "/opt/ts3soundboard10/config.ini"
  399. sed -i -e "s/ts3soundboard/ts3soundboard11/g" "/opt/ts3soundboard11/config.ini"
  400. sed -i -e "s/ts3soundboard/ts3soundboard12/g" "/opt/ts3soundboard12/config.ini"
  401. sed -i -e "s/ts3soundboard/ts3soundboard13/g" "/opt/ts3soundboard13/config.ini"
  402. sed -i -e "s/ts3soundboard/ts3soundboard14/g" "/opt/ts3soundboard14/config.ini"
  403. sed -i -e "s/ts3soundboard/ts3soundboard15/g" "/opt/ts3soundboard15/config.ini"
  404. echo -e "$COL_GREEN      SinusBots created done ...                         $COL_RESET"
  405. echo ""
  406. }
  407. ##### CREATION SINUSBOT 25 INSTANCES #####
  408. set_created_sinusbot_25instances(){
  409. echo -e "$COL_GREEN  $COL_YELLOW 5) Creating SinusBots $COL_RESET $COL_GREEN                             $COL_RESET"
  410. iptables -A SERVICES -p tcp -m multiport --dports 80,8100:8130,8000,443 -m comment --comment "Allow: Webserver" -j ACCEPT
  411. iptables -A INPUT -p tcp --dport 8101 -m state --state NEW -j ACCEPT
  412. iptables -A INPUT -p tcp --dport 8102 -m state --state NEW -j ACCEPT
  413. iptables -A INPUT -p tcp --dport 8103 -m state --state NEW -j ACCEPT
  414. iptables -A INPUT -p tcp --dport 8104 -m state --state NEW -j ACCEPT
  415. iptables -A INPUT -p tcp --dport 8105 -m state --state NEW -j ACCEPT
  416. iptables -A INPUT -p tcp --dport 8106 -m state --state NEW -j ACCEPT
  417. iptables -A INPUT -p tcp --dport 8107 -m state --state NEW -j ACCEPT
  418. iptables -A INPUT -p tcp --dport 8108 -m state --state NEW -j ACCEPT
  419. iptables -A INPUT -p tcp --dport 8109 -m state --state NEW -j ACCEPT
  420. iptables -A INPUT -p tcp --dport 8110 -m state --state NEW -j ACCEPT
  421. iptables -A INPUT -p tcp --dport 8111 -m state --state NEW -j ACCEPT
  422. iptables -A INPUT -p tcp --dport 8112 -m state --state NEW -j ACCEPT
  423. iptables -A INPUT -p tcp --dport 8113 -m state --state NEW -j ACCEPT
  424. iptables -A INPUT -p tcp --dport 8114 -m state --state NEW -j ACCEPT
  425. iptables -A INPUT -p tcp --dport 8115 -m state --state NEW -j ACCEPT
  426. iptables -A INPUT -p tcp --dport 8116 -m state --state NEW -j ACCEPT
  427. iptables -A INPUT -p tcp --dport 8117 -m state --state NEW -j ACCEPT
  428. iptables -A INPUT -p tcp --dport 8118 -m state --state NEW -j ACCEPT
  429. iptables -A INPUT -p tcp --dport 8119 -m state --state NEW -j ACCEPT
  430. iptables -A INPUT -p tcp --dport 8120 -m state --state NEW -j ACCEPT
  431. iptables -A INPUT -p tcp --dport 8121 -m state --state NEW -j ACCEPT
  432. iptables -A INPUT -p tcp --dport 8121 -m state --state NEW -j ACCEPT
  433. iptables -A INPUT -p tcp --dport 8122 -m state --state NEW -j ACCEPT
  434. iptables -A INPUT -p tcp --dport 8123 -m state --state NEW -j ACCEPT
  435. iptables -A INPUT -p tcp --dport 8124 -m state --state NEW -j ACCEPT
  436. iptables -A INPUT -p tcp --dport 8125 -m state --state NEW -j ACCEPT
  437. cd /opt/
  438. wget --no-check-certificate $sinusbotstart50bots 2>/dev/null -O $sinusbotstart50bots50; chmod +x $sinusbotstart50bots50
  439. cp -r ts3soundboard/ ts3soundboard2
  440. cp -r ts3soundboard/ ts3soundboard3
  441. cp -r ts3soundboard/ ts3soundboard4
  442. cp -r ts3soundboard/ ts3soundboard5
  443. cp -r ts3soundboard/ ts3soundboard6
  444. cp -r ts3soundboard/ ts3soundboard7
  445. cp -r ts3soundboard/ ts3soundboard8
  446. cp -r ts3soundboard/ ts3soundboard9
  447. cp -r ts3soundboard/ ts3soundboard10
  448. cp -r ts3soundboard/ ts3soundboard11
  449. cp -r ts3soundboard/ ts3soundboard12
  450. cp -r ts3soundboard/ ts3soundboard13
  451. cp -r ts3soundboard/ ts3soundboard14
  452. cp -r ts3soundboard/ ts3soundboard15
  453. cp -r ts3soundboard/ ts3soundboard16
  454. cp -r ts3soundboard/ ts3soundboard17
  455. cp -r ts3soundboard/ ts3soundboard18
  456. cp -r ts3soundboard/ ts3soundboard19
  457. cp -r ts3soundboard/ ts3soundboard20
  458. cp -r ts3soundboard/ ts3soundboard21
  459. cp -r ts3soundboard/ ts3soundboard22
  460. cp -r ts3soundboard/ ts3soundboard23
  461. cp -r ts3soundboard/ ts3soundboard24
  462. cp -r ts3soundboard/ ts3soundboard25
  463. sed -i -e "s/ListenPort = 8087/ListenPort = 8101/g" "/opt/ts3soundboard/config.ini"
  464. sed -i -e "s/ListenPort = 8087/ListenPort = 8102/g" "/opt/ts3soundboard2/config.ini"
  465. sed -i -e "s/ListenPort = 8087/ListenPort = 8103/g" "/opt/ts3soundboard3/config.ini"
  466. sed -i -e "s/ListenPort = 8087/ListenPort = 8104/g" "/opt/ts3soundboard4/config.ini"
  467. sed -i -e "s/ListenPort = 8087/ListenPort = 8105/g" "/opt/ts3soundboard5/config.ini"
  468. sed -i -e "s/ListenPort = 8087/ListenPort = 8106/g" "/opt/ts3soundboard6/config.ini"
  469. sed -i -e "s/ListenPort = 8087/ListenPort = 8107/g" "/opt/ts3soundboard7/config.ini"
  470. sed -i -e "s/ListenPort = 8087/ListenPort = 8108/g" "/opt/ts3soundboard8/config.ini"
  471. sed -i -e "s/ListenPort = 8087/ListenPort = 8109/g" "/opt/ts3soundboard9/config.ini"
  472. sed -i -e "s/ListenPort = 8087/ListenPort = 8110/g" "/opt/ts3soundboard10/config.ini"
  473. sed -i -e "s/ListenPort = 8087/ListenPort = 8111/g" "/opt/ts3soundboard11/config.ini"
  474. sed -i -e "s/ListenPort = 8087/ListenPort = 8112/g" "/opt/ts3soundboard12/config.ini"
  475. sed -i -e "s/ListenPort = 8087/ListenPort = 8113/g" "/opt/ts3soundboard13/config.ini"
  476. sed -i -e "s/ListenPort = 8087/ListenPort = 8114/g" "/opt/ts3soundboard14/config.ini"
  477. sed -i -e "s/ListenPort = 8087/ListenPort = 8115/g" "/opt/ts3soundboard15/config.ini"
  478. sed -i -e "s/ListenPort = 8087/ListenPort = 8116/g" "/opt/ts3soundboard16/config.ini"
  479. sed -i -e "s/ListenPort = 8087/ListenPort = 8117/g" "/opt/ts3soundboard17/config.ini"
  480. sed -i -e "s/ListenPort = 8087/ListenPort = 8118/g" "/opt/ts3soundboard18/config.ini"
  481. sed -i -e "s/ListenPort = 8087/ListenPort = 8119/g" "/opt/ts3soundboard19/config.ini"
  482. sed -i -e "s/ListenPort = 8087/ListenPort = 8120/g" "/opt/ts3soundboard20/config.ini"
  483. sed -i -e "s/ListenPort = 8087/ListenPort = 8121/g" "/opt/ts3soundboard21/config.ini"
  484. sed -i -e "s/ListenPort = 8087/ListenPort = 8122/g" "/opt/ts3soundboard22/config.ini"
  485. sed -i -e "s/ListenPort = 8087/ListenPort = 8123/g" "/opt/ts3soundboard23/config.ini"
  486. sed -i -e "s/ListenPort = 8087/ListenPort = 8124/g" "/opt/ts3soundboard24/config.ini"
  487. sed -i -e "s/ListenPort = 8087/ListenPort = 8125/g" "/opt/ts3soundboard25/config.ini"
  488. sed -i -e "s/ts3soundboard/ts3soundboard2/g" "/opt/ts3soundboard2/config.ini"
  489. sed -i -e "s/ts3soundboard/ts3soundboard3/g" "/opt/ts3soundboard3/config.ini"
  490. sed -i -e "s/ts3soundboard/ts3soundboard4/g" "/opt/ts3soundboard4/config.ini"
  491. sed -i -e "s/ts3soundboard/ts3soundboard5/g" "/opt/ts3soundboard5/config.ini"
  492. sed -i -e "s/ts3soundboard/ts3soundboard6/g" "/opt/ts3soundboard6/config.ini"
  493. sed -i -e "s/ts3soundboard/ts3soundboard7/g" "/opt/ts3soundboard7/config.ini"
  494. sed -i -e "s/ts3soundboard/ts3soundboard8/g" "/opt/ts3soundboard8/config.ini"
  495. sed -i -e "s/ts3soundboard/ts3soundboard9/g" "/opt/ts3soundboard9/config.ini"
  496. sed -i -e "s/ts3soundboard/ts3soundboard10/g" "/opt/ts3soundboard10/config.ini"
  497. sed -i -e "s/ts3soundboard/ts3soundboard11/g" "/opt/ts3soundboard11/config.ini"
  498. sed -i -e "s/ts3soundboard/ts3soundboard12/g" "/opt/ts3soundboard12/config.ini"
  499. sed -i -e "s/ts3soundboard/ts3soundboard13/g" "/opt/ts3soundboard13/config.ini"
  500. sed -i -e "s/ts3soundboard/ts3soundboard14/g" "/opt/ts3soundboard14/config.ini"
  501. sed -i -e "s/ts3soundboard/ts3soundboard15/g" "/opt/ts3soundboard15/config.ini"
  502. sed -i -e "s/ts3soundboard/ts3soundboard16/g" "/opt/ts3soundboard16/config.ini"
  503. sed -i -e "s/ts3soundboard/ts3soundboard17/g" "/opt/ts3soundboard17/config.ini"
  504. sed -i -e "s/ts3soundboard/ts3soundboard18/g" "/opt/ts3soundboard18/config.ini"
  505. sed -i -e "s/ts3soundboard/ts3soundboard19/g" "/opt/ts3soundboard19/config.ini"
  506. sed -i -e "s/ts3soundboard/ts3soundboard20/g" "/opt/ts3soundboard20/config.ini"
  507. sed -i -e "s/ts3soundboard/ts3soundboard21/g" "/opt/ts3soundboard21/config.ini"
  508. sed -i -e "s/ts3soundboard/ts3soundboard22/g" "/opt/ts3soundboard22/config.ini"
  509. sed -i -e "s/ts3soundboard/ts3soundboard23/g" "/opt/ts3soundboard23/config.ini"
  510. sed -i -e "s/ts3soundboard/ts3soundboard24/g" "/opt/ts3soundboard24/config.ini"
  511. sed -i -e "s/ts3soundboard/ts3soundboard25/g" "/opt/ts3soundboard25/config.ini"
  512. echo -e "$COL_GREEN      SinusBots created done ...                         $COL_RESET"
  513. echo ""
  514. }
  515.  
  516.  
  517. ##### LAUNCH SINUSBOT 1 INSTANCE #####
  518. set_launch_sinusbot_1instance(){
  519. echo -e "$COL_GREEN  $COL_YELLOW 6) Launch the SinusBot $COL_RESET $COL_GREEN                             $COL_RESET"
  520. echo -e "$COL_RED      WARNING : Change the password immediately ! $COL_RESET"
  521. sleep 1
  522. cd /opt/ts3soundboard/
  523. su root -c "screen -A -m -d -S sinusbot1 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  524. sleep 3
  525. echo -e "$COL_GREEN      The SinusBot is online ...                        $COL_RESET"
  526. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8101$COL_GREEN   $COL_RESET"
  527. echo -e "$COL_YELLOW      Login: admin and Pass: foobar $COL_RESET-$COL_RED WARNING change the password !  $COL_RESET"
  528. echo -e "$COL_GREEN      It's over ! Join our community at$COL_RED R4P3.NET $COL_GREEN       $COL_RESET"
  529. echo ""
  530. }
  531.  
  532. ##### LAUNCH SINUSBOT 2 INSTANCES #####
  533. set_launch_sinusbot_2instances(){
  534. echo -e "$COL_GREEN  $COL_YELLOW 6) Launch the SinusBots $COL_RESET $COL_GREEN                             $COL_RESET"
  535. echo -e "$COL_RED      WARNING : Change the password immediately ! $COL_RESET"
  536. sleep 1
  537. cd /opt/ts3soundboard/
  538. su root -c "screen -A -m -d -S sinusbot1 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  539. sleep 3
  540. cd /opt/ts3soundboard2/
  541. su root -c "screen -A -m -d -S sinusbot2 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  542. sleep 3
  543. echo -e "$COL_GREEN      The SinusBots are online ...                        $COL_RESET"
  544. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8101   $COL_RESET"
  545. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8102   $COL_RESET"
  546. echo -e "$COL_YELLOW      Login: admin and Pass: foobar $COL_RESET-$COL_RED WARNING change the password !  $COL_RESET"
  547. echo -e "$COL_GREEN      It's over ! Join our community at$COL_RED R4P3.NET $COL_GREEN       $COL_RESET"
  548. echo ""
  549. }
  550.  
  551. ##### LAUNCH SINUSBOT 3 INSTANCES #####
  552. set_launch_sinusbot_3instances(){
  553. echo -e "$COL_GREEN  $COL_YELLOW 6) Launch the SinusBots $COL_RESET $COL_GREEN                             $COL_RESET"
  554. echo -e "$COL_RED      WARNING : Change the password immediately ! $COL_RESET"
  555. sleep 1
  556. cd /opt/ts3soundboard/
  557. su root -c "screen -A -m -d -S sinusbot1 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  558. sleep 3
  559. cd /opt/ts3soundboard2/
  560. su root -c "screen -A -m -d -S sinusbot2 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  561. sleep 3
  562. cd /opt/ts3soundboard3/
  563. su root -c "screen -A -m -d -S sinusbot3 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  564. sleep 3
  565. echo -e "$COL_GREEN      The SinusBots are online ...                        $COL_RESET"
  566. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8101   $COL_RESET"
  567. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8102   $COL_RESET"
  568. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8103   $COL_RESET"
  569. echo -e "$COL_YELLOW      Login: admin and Pass: foobar $COL_RESET-$COL_RED WARNING change the password !  $COL_RESET"
  570. echo -e "$COL_GREEN      It's over ! Join our community at$COL_RED R4P3.NET $COL_GREEN       $COL_RESET"
  571. echo ""
  572. }
  573.  
  574. ##### LAUNCH SINUSBOT 5 INSTANCES #####
  575. set_launch_sinusbot_5instances(){
  576. echo -e "$COL_GREEN  $COL_YELLOW 6) Launch the SinusBots $COL_RESET $COL_GREEN                             $COL_RESET"
  577. echo -e "$COL_RED      WARNING : Change the password immediately ! $COL_RESET"
  578. sleep 1
  579. cd /opt/ts3soundboard/
  580. su root -c "screen -A -m -d -S sinusbot1 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  581. sleep 3
  582. cd /opt/ts3soundboard2/
  583. su root -c "screen -A -m -d -S sinusbot2 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  584. sleep 3
  585. cd /opt/ts3soundboard3/
  586. su root -c "screen -A -m -d -S sinusbot3 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  587. sleep 3
  588. cd /opt/ts3soundboard4/
  589. su root -c "screen -A -m -d -S sinusbot4 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  590. sleep 3
  591. cd /opt/ts3soundboard5/
  592. su root -c "screen -A -m -d -S sinusbot5 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  593. sleep 3
  594. echo -e "$COL_GREEN      The SinusBots are online ...                        $COL_RESET"
  595. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8101   $COL_RESET"
  596. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8102   $COL_RESET"
  597. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8103   $COL_RESET"
  598. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8104   $COL_RESET"
  599. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8105   $COL_RESET"
  600. echo -e "$COL_YELLOW      Login: admin and Pass: foobar $COL_RESET-$COL_RED WARNING change the password !  $COL_RESET"
  601. echo ""
  602. }
  603.  
  604. ##### LAUNCH SINUSBOT 10 INSTANCES #####
  605. set_launch_sinusbot_10instances(){
  606. echo -e "$COL_GREEN  $COL_YELLOW 6) Launch the SinusBots $COL_RESET $COL_GREEN                             $COL_RESET"
  607. echo -e "$COL_RED      WARNING : Change the password immediately ! $COL_RESET"
  608. sleep 1
  609. cd /opt/ts3soundboard/
  610. su root -c "screen -A -m -d -S sinusbot1 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  611. sleep 3
  612. cd /opt/ts3soundboard2/
  613. su root -c "screen -A -m -d -S sinusbot2 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  614. sleep 3
  615. cd /opt/ts3soundboard3/
  616. su root -c "screen -A -m -d -S sinusbot3 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  617. sleep 3
  618. cd /opt/ts3soundboard4/
  619. su root -c "screen -A -m -d -S sinusbot4 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  620. sleep 3
  621. cd /opt/ts3soundboard5/
  622. su root -c "screen -A -m -d -S sinusbot5 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  623. sleep 3
  624. cd /opt/ts3soundboard6/
  625. su root -c "screen -A -m -d -S sinusbot6 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  626. sleep 3
  627. cd /opt/ts3soundboard7/
  628. su root -c "screen -A -m -d -S sinusbot7 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  629. sleep 3
  630. cd /opt/ts3soundboard8/
  631. su root -c "screen -A -m -d -S sinusbot8 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  632. sleep 3
  633. cd /opt/ts3soundboard9/
  634. su root -c "screen -A -m -d -S sinusbot9 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  635. sleep 3
  636. cd /opt/ts3soundboard10/
  637. su root -c "screen -A -m -d -S sinusbot10 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  638. sleep 3
  639.  
  640. echo -e "$COL_GREEN      The SinusBots are online ...                        $COL_RESET"
  641. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8101   $COL_RESET"
  642. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8102   $COL_RESET"
  643. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8103   $COL_RESET"
  644. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8104   $COL_RESET"
  645. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8105   $COL_RESET"
  646. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8106   $COL_RESET"
  647. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8107   $COL_RESET"
  648. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8108   $COL_RESET"
  649. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8109   $COL_RESET"
  650. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8110   $COL_RESET"
  651. echo -e "$COL_YELLOW      Login: admin and Pass: foobar $COL_RESET-$COL_RED WARNING change the password !  $COL_RESET"
  652. echo ""
  653. }
  654.  
  655. ##### LAUNCH SINUSBOT 15 INSTANCES #####
  656. set_launch_sinusbot_15instances(){
  657. echo -e "$COL_GREEN  $COL_YELLOW 6) Launch the SinusBots $COL_RESET $COL_GREEN                             $COL_RESET"
  658. echo -e "$COL_RED      WARNING : Change the password immediately ! $COL_RESET"
  659. sleep 1
  660. cd /opt/ts3soundboard/
  661. su root -c "screen -A -m -d -S sinusbot1 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  662. sleep 3
  663. cd /opt/ts3soundboard2/
  664. su root -c "screen -A -m -d -S sinusbot2 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  665. sleep 3
  666. cd /opt/ts3soundboard3/
  667. su root -c "screen -A -m -d -S sinusbot3 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  668. sleep 3
  669. cd /opt/ts3soundboard4/
  670. su root -c "screen -A -m -d -S sinusbot4 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  671. sleep 3
  672. cd /opt/ts3soundboard5/
  673. su root -c "screen -A -m -d -S sinusbot5 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  674. sleep 3
  675. cd /opt/ts3soundboard6/
  676. su root -c "screen -A -m -d -S sinusbot6 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  677. sleep 3
  678. cd /opt/ts3soundboard7/
  679. su root -c "screen -A -m -d -S sinusbot7 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  680. sleep 3
  681. cd /opt/ts3soundboard8/
  682. su root -c "screen -A -m -d -S sinusbot8 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  683. sleep 3
  684. cd /opt/ts3soundboard9/
  685. su root -c "screen -A -m -d -S sinusbot9 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  686. sleep 3
  687. cd /opt/ts3soundboard10/
  688. su root -c "screen -A -m -d -S sinusbot10 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  689. sleep 3
  690. cd /opt/ts3soundboard11/
  691. su root -c "screen -A -m -d -S sinusbot11 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  692. sleep 3
  693. cd /opt/ts3soundboard12/
  694. su root -c "screen -A -m -d -S sinusbot12 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  695. sleep 3
  696. cd /opt/ts3soundboard13/
  697. su root -c "screen -A -m -d -S sinusbot13 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  698. sleep 3
  699. cd /opt/ts3soundboard14/
  700. su root -c "screen -A -m -d -S sinusbot14 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  701. sleep 3
  702. cd /opt/ts3soundboard15/
  703. su root -c "screen -A -m -d -S sinusbot15 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  704. sleep 3
  705.  
  706. echo -e "$COL_GREEN      The SinusBots are online ...                        $COL_RESET"
  707. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8101   $COL_RESET"
  708. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8102   $COL_RESET"
  709. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8103   $COL_RESET"
  710. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8104   $COL_RESET"
  711. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8105   $COL_RESET"
  712. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8106   $COL_RESET"
  713. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8107   $COL_RESET"
  714. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8108   $COL_RESET"
  715. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8109   $COL_RESET"
  716. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8110   $COL_RESET"
  717. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8111   $COL_RESET"
  718. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8112   $COL_RESET"
  719. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8113   $COL_RESET"
  720. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8114   $COL_RESET"
  721. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8115   $COL_RESET"
  722. echo -e "$COL_YELLOW      Login: admin and Pass: foobar $COL_RESET-$COL_RED WARNING change the password !  $COL_RESET"
  723. echo ""
  724. }
  725. ##### LAUNCH SINUSBOT 15 INSTANCES #####
  726. set_launch_sinusbot_25instances(){
  727. echo -e "$COL_GREEN  $COL_YELLOW 6) Launch the SinusBots $COL_RESET $COL_GREEN                             $COL_RESET"
  728. echo -e "$COL_RED      WARNING : Change the password immediately ! $COL_RESET"
  729. sleep 1
  730. cd /opt/ts3soundboard/
  731. su root -c "screen -A -m -d -S sinusbot1 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  732. sleep 3
  733. cd /opt/ts3soundboard2/
  734. su root -c "screen -A -m -d -S sinusbot2 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  735. sleep 3
  736. cd /opt/ts3soundboard3/
  737. su root -c "screen -A -m -d -S sinusbot3 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  738. sleep 3
  739. cd /opt/ts3soundboard4/
  740. su root -c "screen -A -m -d -S sinusbot4 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  741. sleep 3
  742. cd /opt/ts3soundboard5/
  743. su root -c "screen -A -m -d -S sinusbot5 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  744. sleep 3
  745. cd /opt/ts3soundboard6/
  746. su root -c "screen -A -m -d -S sinusbot6 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  747. sleep 3
  748. cd /opt/ts3soundboard7/
  749. su root -c "screen -A -m -d -S sinusbot7 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  750. sleep 3
  751. cd /opt/ts3soundboard8/
  752. su root -c "screen -A -m -d -S sinusbot8 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  753. sleep 3
  754. cd /opt/ts3soundboard9/
  755. su root -c "screen -A -m -d -S sinusbot9 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  756. sleep 3
  757. cd /opt/ts3soundboard10/
  758. su root -c "screen -A -m -d -S sinusbot10 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  759. sleep 3
  760. cd /opt/ts3soundboard11/
  761. su root -c "screen -A -m -d -S sinusbot11 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  762. sleep 3
  763. cd /opt/ts3soundboard12/
  764. su root -c "screen -A -m -d -S sinusbot12 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  765. sleep 3
  766. cd /opt/ts3soundboard13/
  767. su root -c "screen -A -m -d -S sinusbot13 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  768. sleep 3
  769. cd /opt/ts3soundboard14/
  770. su root -c "screen -A -m -d -S sinusbot14 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  771. sleep 3
  772. cd /opt/ts3soundboard16/
  773. su root -c "screen -A -m -d -S sinusbot15 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  774. sleep 3
  775. cd /opt/ts3soundboard17/
  776. su root -c "screen -A -m -d -S sinusbot16 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  777. sleep 3
  778. cd /opt/ts3soundboard18/
  779. su root -c "screen -A -m -d -S sinusbot17 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  780. sleep 3
  781. cd /opt/ts3soundboard19/
  782. su root -c "screen -A -m -d -S sinusbot18 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  783. sleep 3
  784. cd /opt/ts3soundboard20/
  785. su root -c "screen -A -m -d -S sinusbot20 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  786. sleep 3
  787. cd /opt/ts3soundboard21/
  788. su root -c "screen -A -m -d -S sinusbot21 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  789. sleep 3
  790. cd /opt/ts3soundboard22/
  791. su root -c "screen -A -m -d -S sinusbot22 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  792. sleep 3
  793. cd /opt/ts3soundboard23/
  794. su root -c "screen -A -m -d -S sinusbot23 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  795. sleep 3
  796. cd /opt/ts3soundboard24/
  797. su root -c "screen -A -m -d -S sinusbot24 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  798. sleep 3
  799. cd /opt/ts3soundboard25/
  800. su root -c "screen -A -m -d -S sinusbot25 ./sinusbot -RunningAsRootIsEvilAndIKnowThat --pwreset=foobar"
  801. echo -e "$COL_GREEN      The SinusBots are online ...                        $COL_RESET"
  802. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8101   $COL_RESET"
  803. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8102   $COL_RESET"
  804. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8103   $COL_RESET"
  805. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8104   $COL_RESET"
  806. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8105   $COL_RESET"
  807. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8106   $COL_RESET"
  808. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8107   $COL_RESET"
  809. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8108   $COL_RESET"
  810. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8109   $COL_RESET"
  811. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8110   $COL_RESET"
  812. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8111   $COL_RESET"
  813. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8112   $COL_RESET"
  814. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8113   $COL_RESET"
  815. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8114   $COL_RESET"
  816. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8115   $COL_RESET"
  817. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8116   $COL_RESET"
  818. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8117   $COL_RESET"
  819. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8118   $COL_RESET"
  820. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8119   $COL_RESET"
  821. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8120   $COL_RESET"
  822. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8121   $COL_RESET"
  823. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8122   $COL_RESET"
  824. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8123   $COL_RESET"
  825. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8124   $COL_RESET"
  826. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8125   $COL_RESET"
  827. echo -e "$COL_YELLOW      Login: admin and Pass: foobar $COL_RESET-$COL_RED WARNING change the password !  $COL_RESET"
  828. echo ""
  829. }
  830.  
  831. ##### UNINSTALL SCRIPT #####
  832. set_uninstall(){
  833. clear
  834. echo -e "$COL_GREEN######################################################### $COL_RESET"
  835. echo -e "$COL_GREEN#        $COL_RED $COL_GREEN Undo all changes made by the script          # $COL_RESET"
  836. echo -e "$COL_GREEN######################################################### $COL_RESET"
  837. echo -e "$COL_GREEN#                     $COL_RED ARE YOU SURE ?                  $COL_GREEN # $COL_RESET"
  838. echo -e "$COL_GREEN#           $COL_RED Y)$COL_GREEN Yes                                     # $COL_RESET"
  839. echo -e "$COL_GREEN#           $COL_RED N)$COL_GREEN No                                      # $COL_RESET"
  840. echo -e "$COL_GREEN#           $COL_RED Q)$COL_GREEN Quit                                    # $COL_RESET"
  841. echo -e "$COL_GREEN######################################################### "
  842. echo -e "Answer: $COL_RESET"
  843. read answer
  844.  
  845. case $answer in
  846. "y" | "Y")
  847. cd /opt/
  848. su root -c "screen -X -S sinusbot1 quit"
  849. su root -c "screen -X -S sinusbot2 quit"
  850. su root -c "screen -X -S sinusbot3 quit"
  851. su root -c "screen -X -S sinusbot4 quit"
  852. su root -c "screen -X -S sinusbot5 quit"
  853. su root -c "screen -X -S sinusbot6 quit"
  854. su root -c "screen -X -S sinusbot7 quit"
  855. su root -c "screen -X -S sinusbot8 quit"
  856. su root -c "screen -X -S sinusbot9 quit"
  857. su root -c "screen -X -S sinusbot10 quit"
  858. su root -c "screen -X -S sinusbot11 quit"
  859. su root -c "screen -X -S sinusbot12 quit"
  860. su root -c "screen -X -S sinusbot13 quit"
  861. su root -c "screen -X -S sinusbot14 quit"
  862. su root -c "screen -X -S sinusbot15 quit"
  863. su root -c "screen -X -S sinusbot16 quit"
  864. su root -c "screen -X -S sinusbot17 quit"
  865. su root -c "screen -X -S sinusbot18 quit"
  866. su root -c "screen -X -S sinusbot19 quit"
  867. su root -c "screen -X -S sinusbot20 quit"
  868. su root -c "screen -X -S sinusbot21 quit"
  869. su root -c "screen -X -S sinusbot22 quit"
  870. su root -c "screen -X -S sinusbot23 quit"
  871. su root -c "screen -X -S sinusbot24 quit"
  872. su root -c "screen -X -S sinusbot25 quit"
  873. su root -c "pkill screen"
  874. rm -R ts3soundboard/ ts3soundboard2/ ts3soundboard3/ ts3soundboard4/ ts3soundboard5/ ts3soundboard6/ ts3soundboard7/ ts3soundboard8/ ts3soundboard9/ ts3soundboard10/ ts3soundboard11/ ts3soundboard12/ ts3soundboard13/ ts3soundboard14/ ts3soundboard15/ ts3soundboard16/ ts3soundboard17/ ts3soundboard18/ ts3soundboard19/ ts3soundboard20/ ts3soundboard21/ ts3soundboard22/ ts3soundboard23/ ts3soundboard24/ ts3soundboard25/ 2>/dev/null
  875. rm -R 2_sinusbot.sh 4_sinusbots.sh 6_sinusbots.sh 10_sinusbots.sh 20_sinusbots.sh 30_sinusbots.sh 50_sinusbots.sh 2>/dev/null
  876. rm -R /etc/youtube-dl.conf 2>/dev/null
  877. clear
  878. cd /etc/init.d/
  879. update-rc.d -f sinusbot_aio_autostart.sh remove
  880. rm -R sinusbot_aio_autostart.sh 2>/dev/null
  881. clear
  882. mv /etc/apt/sources.list_temporary /etc/apt/sources.list
  883. sudo apt-get -y remove youtube-dl
  884. sudo apt-get -y remove --auto-remove youtube-dl
  885. sudo apt-get -y purge youtube-dl
  886. sudo apt-get -y purge --auto-remove youtube-dl
  887. echo -e "$COL_GREEN      All was been deleted.$COL_RESET"
  888. echo ""
  889. exit
  890. ;;
  891.  
  892. "n" | "N")
  893. echo -e "$COL_GREEN      Uninstall has been canceled. $COL_RESET"
  894. echo ""
  895. restart_script
  896. ;;
  897.  
  898. "q" | "Q")
  899. echo -e "$COL_GREEN      Uninstall has been canceled. $COL_RESET"
  900. echo ""
  901. exit
  902. ;;
  903.  
  904. *)
  905. printf "${COL_RED}Bad Choice. Try Again !\n${NC}"
  906. read -n 1
  907. clear
  908. set_uninstall
  909. ;;
  910. esac
  911. }
  912.  
  913. ######## AUTO START #######
  914. set_auto_start(){
  915. clear
  916. echo -e "$COL_GREEN######################################################### $COL_RESET"
  917. echo -e "$COL_GREEN#        $COL_GREEN AutoStart Script / Start Stop Restart         # $COL_RESET"
  918. echo -e "$COL_GREEN######################################################### $COL_RESET"
  919. echo -e "$COL_GREEN#                     $COL_RED ARE YOU SURE ?                  $COL_GREEN # $COL_RESET"
  920. echo -e "$COL_GREEN#           $COL_RED Y)$COL_GREEN Yes                                     # $COL_RESET"
  921. echo -e "$COL_GREEN#           $COL_RED N)$COL_GREEN No                                      # $COL_RESET"
  922. echo -e "$COL_GREEN#           $COL_RED Q)$COL_GREEN Quit                                    # $COL_RESET"
  923. echo -e "$COL_GREEN######################################################### "
  924. echo -e "Answer: $COL_RESET"
  925. read answer
  926.  
  927. case $answer in
  928. "y" | "Y")
  929. cd /etc/init.d/
  930. wget --no-check-certificate $sinusbotautostart 2>/dev/null -O sinusbot_aio_autostart.sh; chmod 0755 sinusbot_aio_autostart.sh
  931. update-rc.d sinusbot_aio_autostart.sh defaults
  932. echo -e "$COL_GREEN      AutoStart Script installed$COL_RESET"
  933. echo ""
  934. ;;
  935.  
  936. "n" | "N")
  937. echo -e "$COL_GREEN      AutoStart Script has been canceled. $COL_RESET"
  938. echo ""
  939. restart_script
  940. ;;
  941.  
  942. "q" | "Q")
  943. echo -e "$COL_GREEN      AutoStart Script has been canceled. $COL_RESET"
  944. echo ""
  945. exit
  946. ;;
  947.  
  948. *)
  949. printf "${COL_RED}Bad Choice. Try Again !\n${NC}"
  950. read -n 1
  951. clear
  952. set_auto_start
  953. ;;
  954. esac
  955. }
  956.  
  957. ###### UPDATE SCRIPT ######
  958. set_update(){
  959. clear
  960. echo -e "$COL_GREEN######################################################### $COL_RESET"
  961. echo -e "$COL_GREEN#                     $COL_GREEN Update SinusBots !               # $COL_RESET"
  962. echo -e "$COL_GREEN#              $COL_YELLOW SinusBot v$scriptsinusbotversion $COL_RESET $COL_GREEN            # $COL_RESET"
  963. echo -e "$COL_GREEN#             $COL_YELLOW TeamSpeak 3 Client v$teamspeakclientversion $COL_RESET $COL_GREEN           # $COL_RESET"
  964. echo -e "$COL_GREEN#      $COL_YELLOW With various Scripts, Languages and Themes $COL_RESET $COL_GREEN    # $COL_RESET"
  965. echo -e "$COL_GREEN######################################################### $COL_RESET"
  966. echo -e "$COL_GREEN#          $COL_RED ##### PLEASE MAKE YOUR CHOICE ! ##### $COL_RESET $COL_GREEN     # $COL_RESET"
  967. echo -e "$COL_GREEN#          $COL_CYAN WHAT DO YOU HAVE INSTALL PREVIOUSLY ? $COL_RESET $COL_GREEN     # $COL_RESET"
  968. echo -e "$COL_GREEN#           $COL_RED 1)$COL_GREEN  2 SinusBots with 1 instance            # $COL_RESET"
  969. echo -e "$COL_GREEN#           $COL_RED 2)$COL_GREEN  4 SinusBots with 2 instances           # $COL_RESET"
  970. echo -e "$COL_GREEN#           $COL_RED 3)$COL_GREEN  6 SinusBots with 3 instances           # $COL_RESET"
  971. echo -e "$COL_GREEN#           $COL_RED 4)$COL_GREEN 10 SinusBots with 5 instances           # $COL_RESET"
  972. echo -e "$COL_GREEN#           $COL_RED 5)$COL_GREEN 20 SinusBots with 10 instances          # $COL_RESET"
  973. echo -e "$COL_GREEN#           $COL_RED 6)$COL_GREEN 30 SinusBots with 15 instances          # $COL_RESET"
  974. echo -e "$COL_GREEN#           $COL_RED 7)$COL_GREEN 50 SinusBots with 25 instances          # $COL_RESET"
  975. echo -e "$COL_GREEN#           $COL_RED Q)$COL_GREEN Quit                                    # $COL_RESET"
  976. echo -e "$COL_GREEN######################################################### "
  977. echo -e "Answer: $COL_RESET"
  978. read answer
  979.  
  980. case $answer in
  981. "1")
  982.   set_stop_all_instances
  983.   set_update_sinusbot_1instance
  984.   set_update_ts3client_1instance
  985.   set_launch_sinusbot_update_1instance
  986. ;;
  987.  
  988. "2")
  989.   set_stop_all_instances
  990.   set_update_sinusbot_2instances
  991.   set_update_ts3client_2instances
  992.   set_launch_sinusbot_update_2instances
  993. ;;
  994.  
  995. "3")
  996.   set_stop_all_instances
  997.   set_update_sinusbot_3instances
  998.   set_update_ts3client_3instances
  999.   set_launch_sinusbot_update_3instances
  1000. ;;
  1001.  
  1002. "4")
  1003.   set_stop_all_instances
  1004.   set_update_sinusbot_5instances
  1005.   set_update_ts3client_5instances
  1006.   set_launch_sinusbot_update_5instances
  1007. ;;
  1008.  
  1009. "5")
  1010.   set_stop_all_instances
  1011.   set_update_sinusbot_10instances
  1012.   set_update_ts3client_10instances
  1013.   set_launch_sinusbot_update_10instances
  1014. ;;
  1015.  
  1016. "6")
  1017.   set_stop_all_instances
  1018.   set_update_sinusbot_15instances
  1019.   set_update_ts3client_15instances
  1020.   set_launch_sinusbot_update_15instances
  1021. ;;
  1022.  
  1023. "7")
  1024.   set_stop_all_instances
  1025.   set_update_sinusbot_25instances
  1026.   set_update_ts3client_25instances
  1027.   set_launch_sinusbot_update_25instances
  1028. ;;
  1029.  
  1030. "q" | "Q")
  1031. echo -e "$COL_GREEN      Update has been canceled. $COL_RESET"
  1032. echo ""
  1033. exit
  1034. ;;
  1035.  
  1036. *)
  1037. printf "${COL_RED}Bad Choice. Try Again !\n${NC}"
  1038. read -n 1
  1039. clear
  1040. set_update
  1041. ;;
  1042. esac
  1043. }
  1044.  
  1045. ##### STOP ALL INSTANCES #####
  1046. set_stop_all_instances(){
  1047. echo -e "$COL_GREEN  $COL_YELLOW 1) Stoping all instances of SinusBots $COL_RESET $COL_GREEN              $COL_RESET"
  1048. sleep 1
  1049. cd /opt/
  1050. su root -c "screen -X -S sinusbot1 quit"
  1051. su root -c "screen -X -S sinusbot2 quit"
  1052. su root -c "screen -X -S sinusbot3 quit"
  1053. su root -c "screen -X -S sinusbot4 quit"
  1054. su root -c "screen -X -S sinusbot5 quit"
  1055. su root -c "screen -X -S sinusbot6 quit"
  1056. su root -c "screen -X -S sinusbot7 quit"
  1057. su root -c "screen -X -S sinusbot8 quit"
  1058. su root -c "screen -X -S sinusbot9 quit"
  1059. su root -c "screen -X -S sinusbot10 quit"
  1060. su root -c "screen -X -S sinusbot11 quit"
  1061. su root -c "screen -X -S sinusbot12 quit"
  1062. su root -c "screen -X -S sinusbot13 quit"
  1063. su root -c "screen -X -S sinusbot14 quit"
  1064. su root -c "screen -X -S sinusbot15 quit"
  1065. su root -c "screen -X -S sinusbot16 quit"
  1066. su root -c "screen -X -S sinusbot17 quit"
  1067. su root -c "screen -X -S sinusbot18 quit"
  1068. su root -c "screen -X -S sinusbot19 quit"
  1069. su root -c "screen -X -S sinusbot20 quit"
  1070. su root -c "screen -X -S sinusbot21 quit"
  1071. su root -c "screen -X -S sinusbot22 quit"
  1072. su root -c "screen -X -S sinusbot23 quit"
  1073. su root -c "screen -X -S sinusbot24 quit"
  1074. su root -c "screen -X -S sinusbot25 quit"
  1075.  
  1076. su root -c "pkill screen"
  1077. echo -e "$COL_GREEN      All instances of SinusBots are stoped  ...                                 $COL_RESET"
  1078. echo ""
  1079. }
  1080.  
  1081. ##### UPDATE SINUSBOT 1 INSTANCE #####
  1082. set_update_sinusbot_1instance(){
  1083. echo -e "$COL_GREEN  $COL_YELLOW 2) Updating SinusBot to v$scriptsinusbotversion $COL_RESET $COL_GREEN              $COL_RESET"
  1084. cd /opt/ts3soundboard
  1085. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1086. tar -xjf $sinusbotlastversion2
  1087. rm -R $sinusbotlastversion2
  1088. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/plugins
  1089. cd /opt/
  1090. rm -R $sinusbotstart2bots2
  1091. wget --no-check-certificate $sinusbotstart2bots 2>/dev/null -O $sinusbotstart2bots2; chmod +x $sinusbotstart2bots2
  1092. echo -e "$COL_GREEN      Update SinusBot v$scriptsinusbotversion done ...                                 $COL_RESET"
  1093. echo ""
  1094. }
  1095.  
  1096. ##### UPDATE SINUSBOT 2 INSTANCES #####
  1097. set_update_sinusbot_2instances(){
  1098. echo -e "$COL_GREEN  $COL_YELLOW 2) Updating SinusBots to v$scriptsinusbotversion $COL_RESET $COL_GREEN              $COL_RESET"
  1099. cd /opt/ts3soundboard
  1100. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1101. tar -xjf $sinusbotlastversion2
  1102. rm -R $sinusbotlastversion2
  1103. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/plugins
  1104. sleep 1
  1105. cd /opt/ts3soundboard2
  1106. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1107. tar -xjf $sinusbotlastversion2
  1108. rm -R $sinusbotlastversion2
  1109. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard2/TeamSpeak3-Client-linux_amd64/plugins
  1110. cd /opt/
  1111. rm -R $sinusbotstart4bots4
  1112. wget --no-check-certificate $sinusbotstart4bots 2>/dev/null -O $sinusbotstart4bots4; chmod +x $sinusbotstart4bots4
  1113. echo -e "$COL_GREEN      Update SinusBots v$scriptsinusbotversion done ...                                 $COL_RESET"
  1114. echo ""
  1115. }
  1116.  
  1117. ##### UPDATE SINUSBOT 3 INSTANCES #####
  1118. set_update_sinusbot_3instances(){
  1119. echo -e "$COL_GREEN  $COL_YELLOW 2) Updating SinusBots to v$scriptsinusbotversion $COL_RESET $COL_GREEN              $COL_RESET"
  1120. cd /opt/ts3soundboard
  1121. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1122. tar -xjf $sinusbotlastversion2
  1123. rm -R $sinusbotlastversion2
  1124. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/plugins
  1125. sleep 1
  1126. cd /opt/ts3soundboard2
  1127. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1128. tar -xjf $sinusbotlastversion2
  1129. rm -R $sinusbotlastversion2
  1130. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard2/TeamSpeak3-Client-linux_amd64/plugins
  1131. cd /opt/
  1132. sleep 1
  1133. cd /opt/ts3soundboard3
  1134. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1135. tar -xjf $sinusbotlastversion2
  1136. rm -R $sinusbotlastversion2
  1137. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard3/TeamSpeak3-Client-linux_amd64/plugins
  1138. cd /opt/
  1139. rm -R $sinusbotstart6bots6
  1140. wget --no-check-certificate $sinusbotstart6bots 2>/dev/null -O $sinusbotstart6bots6; chmod +x $sinusbotstart6bots6
  1141. echo -e "$COL_GREEN      Update SinusBots v$scriptsinusbotversion done ...                                 $COL_RESET"
  1142. echo ""
  1143. }
  1144.  
  1145. ##### UPDATE SINUSBOT 5 INSTANCES #####
  1146. set_update_sinusbot_5instances(){
  1147. echo -e "$COL_GREEN  $COL_YELLOW 2) Updating SinusBots to v$scriptsinusbotversion $COL_RESET $COL_GREEN              $COL_RESET"
  1148. cd /opt/ts3soundboard
  1149. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1150. tar -xjf $sinusbotlastversion2
  1151. rm -R $sinusbotlastversion2
  1152. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/plugins
  1153. sleep 1
  1154. cd /opt/ts3soundboard2
  1155. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1156. tar -xjf $sinusbotlastversion2
  1157. rm -R $sinusbotlastversion2
  1158. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard2/TeamSpeak3-Client-linux_amd64/plugins
  1159. cd /opt/
  1160. sleep 1
  1161. cd /opt/ts3soundboard3
  1162. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1163. tar -xjf $sinusbotlastversion2
  1164. rm -R $sinusbotlastversion2
  1165. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard3/TeamSpeak3-Client-linux_amd64/plugins
  1166. cd /opt/
  1167. sleep 1
  1168. cd /opt/ts3soundboard4
  1169. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1170. tar -xjf $sinusbotlastversion2
  1171. rm -R $sinusbotlastversion2
  1172. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard4/TeamSpeak3-Client-linux_amd64/plugins
  1173. cd /opt/
  1174. sleep 1
  1175. cd /opt/ts3soundboard5
  1176. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1177. tar -xjf $sinusbotlastversion2
  1178. rm -R $sinusbotlastversion2
  1179. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard5/TeamSpeak3-Client-linux_amd64/plugins
  1180. cd /opt/
  1181. rm -R $sinusbotstart10bots10
  1182. wget --no-check-certificate $sinusbotstart10bots 2>/dev/null -O $sinusbotstart10bots10; chmod +x $sinusbotstart10bots10
  1183. echo -e "$COL_GREEN      Update SinusBots v$scriptsinusbotversion done ...                                 $COL_RESET"
  1184. echo ""
  1185. }
  1186.  
  1187. ##### UPDATE SINUSBOT 10 INSTANCES #####
  1188. set_update_sinusbot_10instances(){
  1189. echo -e "$COL_GREEN  $COL_YELLOW 2) Updating SinusBots to v$scriptsinusbotversion $COL_RESET $COL_GREEN              $COL_RESET"
  1190.  
  1191. cd /opt/ts3soundboard
  1192. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1193. tar -xjf $sinusbotlastversion2
  1194. rm -R $sinusbotlastversion2
  1195. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/plugins
  1196. sleep 1
  1197.  
  1198. cd /opt/ts3soundboard2
  1199. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1200. tar -xjf $sinusbotlastversion2
  1201. rm -R $sinusbotlastversion2
  1202. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard2/TeamSpeak3-Client-linux_amd64/plugins
  1203. cd /opt/
  1204. sleep 1
  1205.  
  1206. cd /opt/ts3soundboard3
  1207. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1208. tar -xjf $sinusbotlastversion2
  1209. rm -R $sinusbotlastversion2
  1210. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard3/TeamSpeak3-Client-linux_amd64/plugins
  1211. cd /opt/
  1212. sleep 1
  1213.  
  1214. cd /opt/ts3soundboard4
  1215. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1216. tar -xjf $sinusbotlastversion2
  1217. rm -R $sinusbotlastversion2
  1218. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard4/TeamSpeak3-Client-linux_amd64/plugins
  1219. cd /opt/
  1220. sleep 1
  1221.  
  1222. cd /opt/ts3soundboard5
  1223. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1224. tar -xjf $sinusbotlastversion2
  1225. rm -R $sinusbotlastversion2
  1226. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard5/TeamSpeak3-Client-linux_amd64/plugins
  1227. sleep 1
  1228.  
  1229. cd /opt/ts3soundboard6
  1230. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1231. tar -xjf $sinusbotlastversion2
  1232. rm -R $sinusbotlastversion2
  1233. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard6/TeamSpeak3-Client-linux_amd64/plugins
  1234. sleep 1
  1235.  
  1236. cd /opt/ts3soundboard7
  1237. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1238. tar -xjf $sinusbotlastversion2
  1239. rm -R $sinusbotlastversion2
  1240. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard7/TeamSpeak3-Client-linux_amd64/plugins
  1241. sleep 1
  1242.  
  1243. cd /opt/ts3soundboard8
  1244. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1245. tar -xjf $sinusbotlastversion2
  1246. rm -R $sinusbotlastversion2
  1247. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard8/TeamSpeak3-Client-linux_amd64/plugins
  1248. sleep 1
  1249.  
  1250. cd /opt/ts3soundboard9
  1251. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1252. tar -xjf $sinusbotlastversion2
  1253. rm -R $sinusbotlastversion2
  1254. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard9/TeamSpeak3-Client-linux_amd64/plugins
  1255. sleep 1
  1256.  
  1257. cd /opt/ts3soundboard10
  1258. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1259. tar -xjf $sinusbotlastversion2
  1260. rm -R $sinusbotlastversion2
  1261. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard10/TeamSpeak3-Client-linux_amd64/plugins
  1262.  
  1263. cd /opt/
  1264. rm -R $sinusbotstart20bots20
  1265. wget --no-check-certificate $sinusbotstart20bots 2>/dev/null -O $sinusbotstart20bots20; chmod +x $sinusbotstart20bots20
  1266. echo -e "$COL_GREEN      Update SinusBots v$scriptsinusbotversion done ...                                 $COL_RESET"
  1267. echo ""
  1268. }
  1269.  
  1270. ##### UPDATE SINUSBOT 15 INSTANCES #####
  1271. set_update_sinusbot_15instances(){
  1272. echo -e "$COL_GREEN  $COL_YELLOW 2) Updating SinusBots to v$scriptsinusbotversion $COL_RESET $COL_GREEN              $COL_RESET"
  1273.  
  1274. cd /opt/ts3soundboard
  1275. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1276. tar -xjf $sinusbotlastversion2
  1277. rm -R $sinusbotlastversion2
  1278. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/plugins
  1279. sleep 1
  1280.  
  1281. cd /opt/ts3soundboard2
  1282. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1283. tar -xjf $sinusbotlastversion2
  1284. rm -R $sinusbotlastversion2
  1285. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard2/TeamSpeak3-Client-linux_amd64/plugins
  1286. cd /opt/
  1287. sleep 1
  1288.  
  1289. cd /opt/ts3soundboard3
  1290. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1291. tar -xjf $sinusbotlastversion2
  1292. rm -R $sinusbotlastversion2
  1293. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard3/TeamSpeak3-Client-linux_amd64/plugins
  1294. cd /opt/
  1295. sleep 1
  1296.  
  1297. cd /opt/ts3soundboard4
  1298. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1299. tar -xjf $sinusbotlastversion2
  1300. rm -R $sinusbotlastversion2
  1301. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard4/TeamSpeak3-Client-linux_amd64/plugins
  1302. cd /opt/
  1303. sleep 1
  1304.  
  1305. cd /opt/ts3soundboard5
  1306. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1307. tar -xjf $sinusbotlastversion2
  1308. rm -R $sinusbotlastversion2
  1309. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard5/TeamSpeak3-Client-linux_amd64/plugins
  1310. sleep 1
  1311.  
  1312. cd /opt/ts3soundboard6
  1313. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1314. tar -xjf $sinusbotlastversion2
  1315. rm -R $sinusbotlastversion2
  1316. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard6/TeamSpeak3-Client-linux_amd64/plugins
  1317. sleep 1
  1318.  
  1319. cd /opt/ts3soundboard7
  1320. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1321. tar -xjf $sinusbotlastversion2
  1322. rm -R $sinusbotlastversion2
  1323. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard7/TeamSpeak3-Client-linux_amd64/plugins
  1324. sleep 1
  1325.  
  1326. cd /opt/ts3soundboard8
  1327. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1328. tar -xjf $sinusbotlastversion2
  1329. rm -R $sinusbotlastversion2
  1330. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard8/TeamSpeak3-Client-linux_amd64/plugins
  1331. sleep 1
  1332.  
  1333. cd /opt/ts3soundboard9
  1334. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1335. tar -xjf $sinusbotlastversion2
  1336. rm -R $sinusbotlastversion2
  1337. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard9/TeamSpeak3-Client-linux_amd64/plugins
  1338. sleep 1
  1339.  
  1340. cd /opt/ts3soundboard10
  1341. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1342. tar -xjf $sinusbotlastversion2
  1343. rm -R $sinusbotlastversion2
  1344. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard10/TeamSpeak3-Client-linux_amd64/plugins
  1345. sleep 1
  1346.  
  1347. cd /opt/ts3soundboard11
  1348. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1349. tar -xjf $sinusbotlastversion2
  1350. rm -R $sinusbotlastversion2
  1351. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard11/TeamSpeak3-Client-linux_amd64/plugins
  1352. sleep 1
  1353.  
  1354. cd /opt/ts3soundboard12
  1355. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1356. tar -xjf $sinusbotlastversion2
  1357. rm -R $sinusbotlastversion2
  1358. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard12/TeamSpeak3-Client-linux_amd64/plugins
  1359. sleep 1
  1360.  
  1361. cd /opt/ts3soundboard13
  1362. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1363. tar -xjf $sinusbotlastversion2
  1364. rm -R $sinusbotlastversion2
  1365. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard13/TeamSpeak3-Client-linux_amd64/plugins
  1366. sleep 1
  1367.  
  1368. cd /opt/ts3soundboard14
  1369. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1370. tar -xjf $sinusbotlastversion2
  1371. rm -R $sinusbotlastversion2
  1372. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard14/TeamSpeak3-Client-linux_amd64/plugins
  1373. sleep 1
  1374.  
  1375. cd /opt/ts3soundboard15
  1376. wget --no-check-certificate $sinusbotlastversion 2>/dev/null -O $sinusbotlastversion2; chmod +x $sinusbotlastversion2
  1377. tar -xjf $sinusbotlastversion2
  1378. rm -R $sinusbotlastversion2
  1379. cp plugin/libsoundbot_plugin.so /opt/ts3soundboard15/TeamSpeak3-Client-linux_amd64/plugins
  1380.  
  1381. cd /opt/
  1382. rm -R $sinusbotstart15bots15
  1383. wget --no-check-certificate $sinusbotstart15bots 2>/dev/null -O $sinusbotstart15bots15; chmod +x $sinusbotstart15bots15
  1384. echo -e "$COL_GREEN      Update SinusBots v$scriptsinusbotversion done ...                                 $COL_RESET"
  1385. echo ""
  1386. }
  1387. ##### UPDATE TEAMSPEAK 3 CLIENT 1 INSTANCE #####
  1388. set_update_ts3client_1instance(){
  1389. echo -e "$COL_GREEN  $COL_YELLOW 3) Updating TeamSpeak 3 Client v$teamspeakclientversion $COL_RESET $COL_GREEN                                $COL_RESET"
  1390. 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"
  1391. 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"
  1392. cd /opt/ts3soundboard
  1393. wget $ts3clientversion
  1394. chmod 0755 $ts3clientversion2
  1395. su root -c "./$ts3clientversion2"
  1396. rm -R $ts3clientversion2
  1397. echo -e "$COL_GREEN      Update TeamSpeak 3 Client v$teamspeakclientversion done ...                         $COL_RESET"
  1398. echo ""
  1399. }
  1400.  
  1401. ##### UPDATE TEAMSPEAK 3 CLIENT 2 INSTANCES #####
  1402. set_update_ts3client_2instances(){
  1403. echo -e "$COL_GREEN  $COL_YELLOW 3) Updating TeamSpeak 3 Client v$teamspeakclientversion $COL_RESET $COL_GREEN                                $COL_RESET"
  1404. 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"
  1405. 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"
  1406. cd /opt/ts3soundboard
  1407. wget $ts3clientversion
  1408. chmod 0755 $ts3clientversion2
  1409. su root -c "./$ts3clientversion2"
  1410. rm -R $ts3clientversion2
  1411. sleep 1
  1412. cd /opt/ts3soundboard2
  1413. wget $ts3clientversion
  1414. chmod 0755 $ts3clientversion2
  1415. su root -c "./$ts3clientversion2"
  1416. rm -R $ts3clientversion2
  1417. echo -e "$COL_GREEN      Update TeamSpeak 3 Client v$teamspeakclientversion done ...                         $COL_RESET"
  1418. echo ""
  1419. }
  1420.  
  1421. ##### UPDATE TEAMSPEAK 3 CLIENT 3 INSTANCES #####
  1422. set_update_ts3client_3instances(){
  1423. echo -e "$COL_GREEN  $COL_YELLOW 3) Updating TeamSpeak 3 Client v$teamspeakclientversion $COL_RESET $COL_GREEN                                $COL_RESET"
  1424. 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"
  1425. 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"
  1426. cd /opt/ts3soundboard
  1427. wget $ts3clientversion
  1428. chmod 0755 $ts3clientversion2
  1429. su root -c "./$ts3clientversion2"
  1430. rm -R $ts3clientversion2
  1431. sleep 1
  1432. cd /opt/ts3soundboard2
  1433. wget $ts3clientversion
  1434. chmod 0755 $ts3clientversion2
  1435. su root -c "./$ts3clientversion2"
  1436. rm -R $ts3clientversion2
  1437. sleep 1
  1438. cd /opt/ts3soundboard3
  1439. wget $ts3clientversion
  1440. chmod 0755 $ts3clientversion2
  1441. su root -c "./$ts3clientversion2"
  1442. rm -R $ts3clientversion2
  1443. echo -e "$COL_GREEN      Update TeamSpeak 3 Client v$teamspeakclientversion done ...                         $COL_RESET"
  1444. echo ""
  1445. }
  1446.  
  1447. ##### UPDATE TEAMSPEAK 3 CLIENT 5 INSTANCES #####
  1448. set_update_ts3client_5instances(){
  1449. echo -e "$COL_GREEN  $COL_YELLOW 3) Updating TeamSpeak 3 Client v$teamspeakclientversion $COL_RESET $COL_GREEN                                $COL_RESET"
  1450. 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"
  1451. 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"
  1452. cd /opt/ts3soundboard
  1453. wget $ts3clientversion
  1454. chmod 0755 $ts3clientversion2
  1455. su root -c "./$ts3clientversion2"
  1456. rm -R $ts3clientversion2
  1457. sleep 1
  1458. cd /opt/ts3soundboard2
  1459. wget $ts3clientversion
  1460. chmod 0755 $ts3clientversion2
  1461. su root -c "./$ts3clientversion2"
  1462. rm -R $ts3clientversion2
  1463. sleep 1
  1464. cd /opt/ts3soundboard3
  1465. wget $ts3clientversion
  1466. chmod 0755 $ts3clientversion2
  1467. su root -c "./$ts3clientversion2"
  1468. rm -R $ts3clientversion2
  1469. sleep 1
  1470. cd /opt/ts3soundboard4
  1471. wget $ts3clientversion
  1472. chmod 0755 $ts3clientversion2
  1473. su root -c "./$ts3clientversion2"
  1474. rm -R $ts3clientversion2
  1475. sleep 1
  1476. cd /opt/ts3soundboard5
  1477. wget $ts3clientversion
  1478. chmod 0755 $ts3clientversion2
  1479. su root -c "./$ts3clientversion2"
  1480. rm -R $ts3clientversion2
  1481. echo -e "$COL_GREEN      Update TeamSpeak 3 Client v$teamspeakclientversion done ...                         $COL_RESET"
  1482. echo ""
  1483. }
  1484.  
  1485. ##### UPDATE TEAMSPEAK 3 CLIENT 10 INSTANCES #####
  1486. set_update_ts3client_10instances(){
  1487. echo -e "$COL_GREEN  $COL_YELLOW 3) Updating TeamSpeak 3 Client v$teamspeakclientversion $COL_RESET $COL_GREEN                                $COL_RESET"
  1488. 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"
  1489. 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"
  1490. cd /opt/ts3soundboard
  1491. wget $ts3clientversion
  1492. chmod 0755 $ts3clientversion2
  1493. su root -c "./$ts3clientversion2"
  1494. rm -R $ts3clientversion2
  1495. sleep 1
  1496.  
  1497. cd /opt/ts3soundboard2
  1498. wget $ts3clientversion
  1499. chmod 0755 $ts3clientversion2
  1500. su root -c "./$ts3clientversion2"
  1501. rm -R $ts3clientversion2
  1502. sleep 1
  1503.  
  1504. cd /opt/ts3soundboard3
  1505. wget $ts3clientversion
  1506. chmod 0755 $ts3clientversion2
  1507. su root -c "./$ts3clientversion2"
  1508. rm -R $ts3clientversion2
  1509. sleep 1
  1510.  
  1511. cd /opt/ts3soundboard4
  1512. wget $ts3clientversion
  1513. chmod 0755 $ts3clientversion2
  1514. su root -c "./$ts3clientversion2"
  1515. rm -R $ts3clientversion2
  1516. sleep 1
  1517.  
  1518. cd /opt/ts3soundboard5
  1519. wget $ts3clientversion
  1520. chmod 0755 $ts3clientversion2
  1521. su root -c "./$ts3clientversion2"
  1522. rm -R $ts3clientversion2
  1523. sleep 1
  1524.  
  1525. cd /opt/ts3soundboard6
  1526. wget $ts3clientversion
  1527. chmod 0755 $ts3clientversion2
  1528. su root -c "./$ts3clientversion2"
  1529. rm -R $ts3clientversion2
  1530. sleep 1
  1531.  
  1532. cd /opt/ts3soundboard7
  1533. wget $ts3clientversion
  1534. chmod 0755 $ts3clientversion2
  1535. su root -c "./$ts3clientversion2"
  1536. rm -R $ts3clientversion2
  1537. sleep 1
  1538.  
  1539. cd /opt/ts3soundboard8
  1540. wget $ts3clientversion
  1541. chmod 0755 $ts3clientversion2
  1542. su root -c "./$ts3clientversion2"
  1543. rm -R $ts3clientversion2
  1544. sleep 1
  1545.  
  1546. cd /opt/ts3soundboard9
  1547. wget $ts3clientversion
  1548. chmod 0755 $ts3clientversion2
  1549. su root -c "./$ts3clientversion2"
  1550. rm -R $ts3clientversion2
  1551. sleep 1
  1552.  
  1553. cd /opt/ts3soundboard10
  1554. wget $ts3clientversion
  1555. chmod 0755 $ts3clientversion2
  1556. su root -c "./$ts3clientversion2"
  1557. rm -R $ts3clientversion2
  1558.  
  1559. echo -e "$COL_GREEN      Update TeamSpeak 3 Client v$teamspeakclientversion done ...                         $COL_RESET"
  1560. echo ""
  1561. }
  1562. ##### UPDATE TEAMSPEAK 3 CLIENT 15 INSTANCES #####
  1563. set_update_ts3client_15instances(){
  1564. echo -e "$COL_GREEN  $COL_YELLOW 3) Updating TeamSpeak 3 Client v$teamspeakclientversion $COL_RESET $COL_GREEN                                $COL_RESET"
  1565. 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"
  1566. 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"
  1567. cd /opt/ts3soundboard
  1568. wget $ts3clientversion
  1569. chmod 0755 $ts3clientversion2
  1570. su root -c "./$ts3clientversion2"
  1571. rm -R $ts3clientversion2
  1572. sleep 1
  1573.  
  1574. cd /opt/ts3soundboard2
  1575. wget $ts3clientversion
  1576. chmod 0755 $ts3clientversion2
  1577. su root -c "./$ts3clientversion2"
  1578. rm -R $ts3clientversion2
  1579. sleep 1
  1580.  
  1581. cd /opt/ts3soundboard3
  1582. wget $ts3clientversion
  1583. chmod 0755 $ts3clientversion2
  1584. su root -c "./$ts3clientversion2"
  1585. rm -R $ts3clientversion2
  1586. sleep 1
  1587.  
  1588. cd /opt/ts3soundboard4
  1589. wget $ts3clientversion
  1590. chmod 0755 $ts3clientversion2
  1591. su root -c "./$ts3clientversion2"
  1592. rm -R $ts3clientversion2
  1593. sleep 1
  1594.  
  1595. cd /opt/ts3soundboard5
  1596. wget $ts3clientversion
  1597. chmod 0755 $ts3clientversion2
  1598. su root -c "./$ts3clientversion2"
  1599. rm -R $ts3clientversion2
  1600. sleep 1
  1601.  
  1602. cd /opt/ts3soundboard6
  1603. wget $ts3clientversion
  1604. chmod 0755 $ts3clientversion2
  1605. su root -c "./$ts3clientversion2"
  1606. rm -R $ts3clientversion2
  1607. sleep 1
  1608.  
  1609. cd /opt/ts3soundboard7
  1610. wget $ts3clientversion
  1611. chmod 0755 $ts3clientversion2
  1612. su root -c "./$ts3clientversion2"
  1613. rm -R $ts3clientversion2
  1614. sleep 1
  1615.  
  1616. cd /opt/ts3soundboard8
  1617. wget $ts3clientversion
  1618. chmod 0755 $ts3clientversion2
  1619. su root -c "./$ts3clientversion2"
  1620. rm -R $ts3clientversion2
  1621. sleep 1
  1622.  
  1623. cd /opt/ts3soundboard9
  1624. wget $ts3clientversion
  1625. chmod 0755 $ts3clientversion2
  1626. su root -c "./$ts3clientversion2"
  1627. rm -R $ts3clientversion2
  1628. sleep 1
  1629.  
  1630. cd /opt/ts3soundboard10
  1631. wget $ts3clientversion
  1632. chmod 0755 $ts3clientversion2
  1633. su root -c "./$ts3clientversion2"
  1634. rm -R $ts3clientversion2
  1635. sleep 1
  1636.  
  1637. cd /opt/ts3soundboard11
  1638. wget $ts3clientversion
  1639. chmod 0755 $ts3clientversion2
  1640. su root -c "./$ts3clientversion2"
  1641. rm -R $ts3clientversion2
  1642. sleep 1
  1643.  
  1644. cd /opt/ts3soundboard12
  1645. wget $ts3clientversion
  1646. chmod 0755 $ts3clientversion2
  1647. su root -c "./$ts3clientversion2"
  1648. rm -R $ts3clientversion2
  1649. sleep 1
  1650.  
  1651. cd /opt/ts3soundboard13
  1652. wget $ts3clientversion
  1653. chmod 0755 $ts3clientversion2
  1654. su root -c "./$ts3clientversion2"
  1655. rm -R $ts3clientversion2
  1656. sleep 1
  1657.  
  1658. cd /opt/ts3soundboard14
  1659. wget $ts3clientversion
  1660. chmod 0755 $ts3clientversion2
  1661. su root -c "./$ts3clientversion2"
  1662. rm -R $ts3clientversion2
  1663. echo -e "$COL_GREEN      Update TeamSpeak 3 Client v$teamspeakclientversion done ...                         $COL_RESET"
  1664. echo ""
  1665. }
  1666.  
  1667. ##### UPDATE TEAMSPEAK 3 CLIENT 25 INSTANCES #####
  1668. set_update_ts3client_25instances(){
  1669. echo -e "$COL_GREEN  $COL_YELLOW 3) Updating TeamSpeak 3 Client v$teamspeakclientversion $COL_RESET $COL_GREEN                                $COL_RESET"
  1670. 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"
  1671. 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"
  1672. cd /opt/ts3soundboard
  1673. wget $ts3clientversion
  1674. chmod 0755 $ts3clientversion2
  1675. su root -c "./$ts3clientversion2"
  1676. rm -R $ts3clientversion2
  1677. sleep 1
  1678.  
  1679. cd /opt/ts3soundboard2
  1680. wget $ts3clientversion
  1681. chmod 0755 $ts3clientversion2
  1682. su root -c "./$ts3clientversion2"
  1683. rm -R $ts3clientversion2
  1684. sleep 1
  1685.  
  1686. cd /opt/ts3soundboard3
  1687. wget $ts3clientversion
  1688. chmod 0755 $ts3clientversion2
  1689. su root -c "./$ts3clientversion2"
  1690. rm -R $ts3clientversion2
  1691. sleep 1
  1692.  
  1693. cd /opt/ts3soundboard4
  1694. wget $ts3clientversion
  1695. chmod 0755 $ts3clientversion2
  1696. su root -c "./$ts3clientversion2"
  1697. rm -R $ts3clientversion2
  1698. sleep 1
  1699.  
  1700. cd /opt/ts3soundboard5
  1701. wget $ts3clientversion
  1702. chmod 0755 $ts3clientversion2
  1703. su root -c "./$ts3clientversion2"
  1704. rm -R $ts3clientversion2
  1705. sleep 1
  1706.  
  1707. cd /opt/ts3soundboard6
  1708. wget $ts3clientversion
  1709. chmod 0755 $ts3clientversion2
  1710. su root -c "./$ts3clientversion2"
  1711. rm -R $ts3clientversion2
  1712. sleep 1
  1713.  
  1714. cd /opt/ts3soundboard7
  1715. wget $ts3clientversion
  1716. chmod 0755 $ts3clientversion2
  1717. su root -c "./$ts3clientversion2"
  1718. rm -R $ts3clientversion2
  1719. sleep 1
  1720.  
  1721. cd /opt/ts3soundboard8
  1722. wget $ts3clientversion
  1723. chmod 0755 $ts3clientversion2
  1724. su root -c "./$ts3clientversion2"
  1725. rm -R $ts3clientversion2
  1726. sleep 1
  1727.  
  1728. cd /opt/ts3soundboard9
  1729. wget $ts3clientversion
  1730. chmod 0755 $ts3clientversion2
  1731. su root -c "./$ts3clientversion2"
  1732. rm -R $ts3clientversion2
  1733. sleep 1
  1734.  
  1735. cd /opt/ts3soundboard10
  1736. wget $ts3clientversion
  1737. chmod 0755 $ts3clientversion2
  1738. su root -c "./$ts3clientversion2"
  1739. rm -R $ts3clientversion2
  1740. sleep 1
  1741.  
  1742. cd /opt/ts3soundboard11
  1743. wget $ts3clientversion
  1744. chmod 0755 $ts3clientversion2
  1745. su root -c "./$ts3clientversion2"
  1746. rm -R $ts3clientversion2
  1747. sleep 1
  1748.  
  1749. cd /opt/ts3soundboard12
  1750. wget $ts3clientversion
  1751. chmod 0755 $ts3clientversion2
  1752. su root -c "./$ts3clientversion2"
  1753. rm -R $ts3clientversion2
  1754. sleep 1
  1755.  
  1756. cd /opt/ts3soundboard13
  1757. wget $ts3clientversion
  1758. chmod 0755 $ts3clientversion2
  1759. su root -c "./$ts3clientversion2"
  1760. rm -R $ts3clientversion2
  1761. sleep 1
  1762.  
  1763. cd /opt/ts3soundboard14
  1764. wget $ts3clientversion
  1765. chmod 0755 $ts3clientversion2
  1766. su root -c "./$ts3clientversion2"
  1767. rm -R $ts3clientversion2
  1768. sleep 1
  1769.  
  1770. cd /opt/ts3soundboard15
  1771. wget $ts3clientversion
  1772. chmod 0755 $ts3clientversion2
  1773. su root -c "./$ts3clientversion2"
  1774. rm -R $ts3clientversion2
  1775. sleep 1
  1776.  
  1777. cd /opt/ts3soundboard16
  1778. wget $ts3clientversion
  1779. chmod 0755 $ts3clientversion2
  1780. su root -c "./$ts3clientversion2"
  1781. rm -R $ts3clientversion2
  1782. sleep 1
  1783.  
  1784. cd /opt/ts3soundboard17
  1785. wget $ts3clientversion
  1786. chmod 0755 $ts3clientversion2
  1787. su root -c "./$ts3clientversion2"
  1788. rm -R $ts3clientversion2
  1789. sleep 1
  1790.  
  1791. cd /opt/ts3soundboard18
  1792. wget $ts3clientversion
  1793. chmod 0755 $ts3clientversion2
  1794. su root -c "./$ts3clientversion2"
  1795. rm -R $ts3clientversion2
  1796. sleep 1
  1797.  
  1798. cd /opt/ts3soundboard19
  1799. wget $ts3clientversion
  1800. chmod 0755 $ts3clientversion2
  1801. su root -c "./$ts3clientversion2"
  1802. rm -R $ts3clientversion2
  1803. sleep 1
  1804.  
  1805. cd /opt/ts3soundboard20
  1806. wget $ts3clientversion
  1807. chmod 0755 $ts3clientversion2
  1808. su root -c "./$ts3clientversion2"
  1809. rm -R $ts3clientversion2
  1810. sleep 1
  1811.  
  1812. cd /opt/ts3soundboard21
  1813. wget $ts3clientversion
  1814. chmod 0755 $ts3clientversion2
  1815. su root -c "./$ts3clientversion2"
  1816. rm -R $ts3clientversion2
  1817. sleep 1
  1818.  
  1819. cd /opt/ts3soundboard22
  1820. wget $ts3clientversion
  1821. chmod 0755 $ts3clientversion2
  1822. su root -c "./$ts3clientversion2"
  1823. rm -R $ts3clientversion2
  1824. sleep 1
  1825.  
  1826. cd /opt/ts3soundboard23
  1827. wget $ts3clientversion
  1828. chmod 0755 $ts3clientversion2
  1829. su root -c "./$ts3clientversion2"
  1830. rm -R $ts3clientversion2
  1831. sleep 1
  1832.  
  1833. cd /opt/ts3soundboard24
  1834. wget $ts3clientversion
  1835. chmod 0755 $ts3clientversion2
  1836. su root -c "./$ts3clientversion2"
  1837. rm -R $ts3clientversion2
  1838. sleep 1
  1839.  
  1840. cd /opt/ts3soundboard25
  1841. wget $ts3clientversion
  1842. chmod 0755 $ts3clientversion2
  1843. su root -c "./$ts3clientversion2"
  1844. rm -R $ts3clientversion2
  1845. echo -e "$COL_GREEN      Update TeamSpeak 3 Client v$teamspeakclientversion done ...                         $COL_RESET"
  1846. echo ""
  1847. }
  1848. ##### LAUNCH SINUSBOT UPDATE 1 INSTANCE #####
  1849. set_launch_sinusbot_update_1instance(){
  1850. echo -e "$COL_GREEN  $COL_YELLOW 6) Launch the SinusBot $COL_RESET $COL_GREEN                             $COL_RESET"
  1851. echo -e "$COL_RED      WARNING : Change the password immediately ! $COL_RESET"
  1852. sleep 1
  1853. cd /opt/ts3soundboard/
  1854. su root -c "screen -A -m -d -S sinusbot1 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  1855. sleep 3
  1856. echo -e "$COL_GREEN      The SinusBot is online ...                        $COL_RESET"
  1857. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8101$COL_GREEN   $COL_RESET"
  1858. echo -e "$COL_YELLOW      Login: admin and Pass: only you know !  $COL_RESET"
  1859. echo ""
  1860. }
  1861.  
  1862. ##### LAUNCH SINUSBOT UPDATE 2 INSTANCES #####
  1863. set_launch_sinusbot_update_2instances(){
  1864. echo -e "$COL_GREEN  $COL_YELLOW 6) Launch the SinusBots $COL_RESET $COL_GREEN                             $COL_RESET"
  1865. echo -e "$COL_RED      WARNING : Change the password immediately ! $COL_RESET"
  1866. sleep 1
  1867. cd /opt/ts3soundboard/
  1868. su root -c "screen -A -m -d -S sinusbot1 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  1869. sleep 3
  1870. cd /opt/ts3soundboard2/
  1871. su root -c "screen -A -m -d -S sinusbot2 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  1872. sleep 3
  1873. echo -e "$COL_GREEN      The SinusBots are online ...                        $COL_RESET"
  1874. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8101   $COL_RESET"
  1875. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8102   $COL_RESET"
  1876. echo -e "$COL_YELLOW      Login: admin and Pass: only you know !  $COL_RESET"
  1877. echo ""
  1878. }
  1879.  
  1880. ##### LAUNCH SINUSBOT UPDATE 3 INSTANCES #####
  1881. set_launch_sinusbot_update_3instances(){
  1882. echo -e "$COL_GREEN  $COL_YELLOW 6) Launch the SinusBots $COL_RESET $COL_GREEN                             $COL_RESET"
  1883. echo -e "$COL_RED      WARNING : Change the password immediately ! $COL_RESET"
  1884. sleep 1
  1885. cd /opt/ts3soundboard/
  1886. su root -c "screen -A -m -d -S sinusbot1 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  1887. sleep 3
  1888. cd /opt/ts3soundboard2/
  1889. su root -c "screen -A -m -d -S sinusbot2 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  1890. sleep 3
  1891. cd /opt/ts3soundboard3/
  1892. su root -c "screen -A -m -d -S sinusbot3 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  1893. sleep 3
  1894. echo -e "$COL_GREEN      The SinusBots are online ...                        $COL_RESET"
  1895. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8101   $COL_RESET"
  1896. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8102   $COL_RESET"
  1897. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8103   $COL_RESET"
  1898. echo -e "$COL_YELLOW      Login: admin and Pass: only you know !  $COL_RESET"
  1899. echo ""
  1900. }
  1901.  
  1902. ##### LAUNCH SINUSBOT UPDATE 5 INSTANCES #####
  1903. set_launch_sinusbot_update_5instances(){
  1904. echo -e "$COL_GREEN  $COL_YELLOW 6) Launch the SinusBots $COL_RESET $COL_GREEN                             $COL_RESET"
  1905. echo -e "$COL_RED      WARNING : Change the password immediately ! $COL_RESET"
  1906. sleep 1
  1907. cd /opt/ts3soundboard/
  1908. su root -c "screen -A -m -d -S sinusbot1 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  1909. sleep 3
  1910. cd /opt/ts3soundboard2/
  1911. su root -c "screen -A -m -d -S sinusbot2 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  1912. sleep 3
  1913. cd /opt/ts3soundboard3/
  1914. su root -c "screen -A -m -d -S sinusbot3 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  1915. sleep 3
  1916. cd /opt/ts3soundboard4/
  1917. su root -c "screen -A -m -d -S sinusbot4 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  1918. sleep 3
  1919. cd /opt/ts3soundboard5/
  1920. su root -c "screen -A -m -d -S sinusbot5 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  1921. sleep 3
  1922. echo -e "$COL_GREEN      The SinusBots are online ...                        $COL_RESET"
  1923. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8101   $COL_RESET"
  1924. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8102   $COL_RESET"
  1925. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8103   $COL_RESET"
  1926. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8104   $COL_RESET"
  1927. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8105   $COL_RESET"
  1928. echo -e "$COL_YELLOW      Login: admin and Pass: only you know !  $COL_RESET"
  1929. echo ""
  1930. }
  1931.  
  1932. ##### LAUNCH SINUSBOT UPDATE 10 INSTANCES #####
  1933. set_launch_sinusbot_update_10instances(){
  1934. echo -e "$COL_GREEN  $COL_YELLOW 6) Launch the SinusBots $COL_RESET $COL_GREEN                             $COL_RESET"
  1935. echo -e "$COL_RED      WARNING : Change the password immediately ! $COL_RESET"
  1936. sleep 1
  1937. cd /opt/ts3soundboard/
  1938. su root -c "screen -A -m -d -S sinusbot1 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  1939. sleep 3
  1940. cd /opt/ts3soundboard2/
  1941. su root -c "screen -A -m -d -S sinusbot2 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  1942. sleep 3
  1943. cd /opt/ts3soundboard3/
  1944. su root -c "screen -A -m -d -S sinusbot3 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  1945. sleep 3
  1946. cd /opt/ts3soundboard4/
  1947. su root -c "screen -A -m -d -S sinusbot4 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  1948. sleep 3
  1949. cd /opt/ts3soundboard5/
  1950. su root -c "screen -A -m -d -S sinusbot5 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  1951. sleep 3
  1952. cd /opt/ts3soundboard6/
  1953. su root -c "screen -A -m -d -S sinusbot6 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  1954. sleep 3
  1955. cd /opt/ts3soundboard7/
  1956. su root -c "screen -A -m -d -S sinusbot7 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  1957. sleep 3
  1958. cd /opt/ts3soundboard8/
  1959. su root -c "screen -A -m -d -S sinusbot8 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  1960. sleep 3
  1961. cd /opt/ts3soundboard9/
  1962. su root -c "screen -A -m -d -S sinusbot9 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  1963. sleep 3
  1964. cd /opt/ts3soundboard10/
  1965. su root -c "screen -A -m -d -S sinusbot10 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  1966. sleep 3
  1967. }
  1968.  
  1969. ##### LAUNCH SINUSBOT UPDATE 15 INSTANCES #####
  1970. set_launch_sinusbot_update_15instances(){
  1971. echo -e "$COL_GREEN  $COL_YELLOW 6) Launch the SinusBots $COL_RESET $COL_GREEN                             $COL_RESET"
  1972. echo -e "$COL_RED      WARNING : Change the password immediately ! $COL_RESET"
  1973. sleep 1
  1974. cd /opt/ts3soundboard/
  1975. su root -c "screen -A -m -d -S sinusbot1 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  1976. sleep 3
  1977. cd /opt/ts3soundboard2/
  1978. su root -c "screen -A -m -d -S sinusbot2 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  1979. sleep 3
  1980. cd /opt/ts3soundboard3/
  1981. su root -c "screen -A -m -d -S sinusbot3 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  1982. sleep 3
  1983. cd /opt/ts3soundboard4/
  1984. su root -c "screen -A -m -d -S sinusbot4 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  1985. sleep 3
  1986. cd /opt/ts3soundboard5/
  1987. su root -c "screen -A -m -d -S sinusbot5 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  1988. sleep 3
  1989. cd /opt/ts3soundboard6/
  1990. su root -c "screen -A -m -d -S sinusbot6 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  1991. sleep 3
  1992. cd /opt/ts3soundboard7/
  1993. su root -c "screen -A -m -d -S sinusbot7 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  1994. sleep 3
  1995. cd /opt/ts3soundboard8/
  1996. su root -c "screen -A -m -d -S sinusbot8 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  1997. sleep 3
  1998. cd /opt/ts3soundboard9/
  1999. su root -c "screen -A -m -d -S sinusbot9 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2000. sleep 3
  2001. cd /opt/ts3soundboard10/
  2002. su root -c "screen -A -m -d -S sinusbot10 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2003. sleep 3
  2004. cd /opt/ts3soundboard11/
  2005. su root -c "screen -A -m -d -S sinusbot11 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2006. sleep 3
  2007. cd /opt/ts3soundboard12/
  2008. su root -c "screen -A -m -d -S sinusbot12 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2009. sleep 3
  2010. cd /opt/ts3soundboard13/
  2011. su root -c "screen -A -m -d -S sinusbot13 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2012. sleep 3
  2013. cd /opt/ts3soundboard14/
  2014. su root -c "screen -A -m -d -S sinusbot14 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2015. sleep 3
  2016. cd /opt/ts3soundboard15/
  2017. su root -c "screen -A -m -d -S sinusbot15 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2018. sleep 3
  2019.  
  2020. echo -e "$COL_GREEN      The SinusBots are online ...                        $COL_RESET"
  2021. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8101   $COL_RESET"
  2022. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8102   $COL_RESET"
  2023. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8103   $COL_RESET"
  2024. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8104   $COL_RESET"
  2025. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8105   $COL_RESET"
  2026. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8106   $COL_RESET"
  2027. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8107   $COL_RESET"
  2028. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8108   $COL_RESET"
  2029. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8109   $COL_RESET"
  2030. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8110   $COL_RESET"
  2031. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8111   $COL_RESET"
  2032. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8112   $COL_RESET"
  2033. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8113   $COL_RESET"
  2034. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8114   $COL_RESET"
  2035. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8115   $COL_RESET"
  2036. echo -e "$COL_YELLOW      Login: admin and Pass: only you know !  $COL_RESET"
  2037. echo ""
  2038. }
  2039.  
  2040. ##### LAUNCH SINUSBOT UPDATE 25 INSTANCES #####
  2041. set_launch_sinusbot_update_25instances(){
  2042. echo -e "$COL_GREEN  $COL_YELLOW 6) Launch the SinusBots $COL_RESET $COL_GREEN                             $COL_RESET"
  2043. echo -e "$COL_RED      WARNING : Change the password immediately ! $COL_RESET"
  2044. sleep 1
  2045. cd /opt/ts3soundboard/
  2046. su root -c "screen -A -m -d -S sinusbot1 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2047. sleep 3
  2048. cd /opt/ts3soundboard2/
  2049. su root -c "screen -A -m -d -S sinusbot2 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2050. sleep 3
  2051. cd /opt/ts3soundboard3/
  2052. su root -c "screen -A -m -d -S sinusbot3 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2053. sleep 3
  2054. cd /opt/ts3soundboard4/
  2055. su root -c "screen -A -m -d -S sinusbot4 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2056. sleep 3
  2057. cd /opt/ts3soundboard5/
  2058. su root -c "screen -A -m -d -S sinusbot5 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2059. sleep 3
  2060. cd /opt/ts3soundboard6/
  2061. su root -c "screen -A -m -d -S sinusbot6 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2062. sleep 3
  2063. cd /opt/ts3soundboard7/
  2064. su root -c "screen -A -m -d -S sinusbot7 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2065. sleep 3
  2066. cd /opt/ts3soundboard8/
  2067. su root -c "screen -A -m -d -S sinusbot8 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2068. sleep 3
  2069. cd /opt/ts3soundboard9/
  2070. su root -c "screen -A -m -d -S sinusbot9 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2071. sleep 3
  2072. cd /opt/ts3soundboard10/
  2073. su root -c "screen -A -m -d -S sinusbot10 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2074. sleep 3
  2075. cd /opt/ts3soundboard11/
  2076. su root -c "screen -A -m -d -S sinusbot11 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2077. sleep 3
  2078. cd /opt/ts3soundboard12/
  2079. su root -c "screen -A -m -d -S sinusbot12 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2080. sleep 3
  2081. cd /opt/ts3soundboard13/
  2082. su root -c "screen -A -m -d -S sinusbot13 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2083. sleep 3
  2084. cd /opt/ts3soundboard14/
  2085. su root -c "screen -A -m -d -S sinusbot14 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2086. sleep 3
  2087. cd /opt/ts3soundboard15/
  2088. su root -c "screen -A -m -d -S sinusbot15 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2089. sleep 3
  2090. cd /opt/ts3soundboard16/
  2091. su root -c "screen -A -m -d -S sinusbot16 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2092. sleep 3
  2093. cd /opt/ts3soundboard17/
  2094. su root -c "screen -A -m -d -S sinusbot17 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2095. sleep 3
  2096. cd /opt/ts3soundboard18/
  2097. su root -c "screen -A -m -d -S sinusbot18 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2098. sleep 3
  2099. cd /opt/ts3soundboard19/
  2100. su root -c "screen -A -m -d -S sinusbot19 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2101. sleep 3
  2102. cd /opt/ts3soundboard20/
  2103. su root -c "screen -A -m -d -S sinusbot20 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2104. sleep 3
  2105. cd /opt/ts3soundboard21/
  2106. su root -c "screen -A -m -d -S sinusbot21 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2107. sleep 3
  2108. cd /opt/ts3soundboard22/
  2109. su root -c "screen -A -m -d -S sinusbot22 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2110. sleep 3
  2111. cd /opt/ts3soundboard23/
  2112. su root -c "screen -A -m -d -S sinusbot23 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2113. sleep 3
  2114. cd /opt/ts3soundboard24/
  2115. su root -c "screen -A -m -d -S sinusbot24 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2116. sleep 3
  2117. cd /opt/ts3soundboard25/
  2118. su root -c "screen -A -m -d -S sinusbot25 ./sinusbot -RunningAsRootIsEvilAndIKnowThat"
  2119. sleep 3
  2120.  
  2121. echo -e "$COL_GREEN      The SinusBots are online ...                        $COL_RESET"
  2122. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8101   $COL_RESET"
  2123. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8102   $COL_RESET"
  2124. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8103   $COL_RESET"
  2125. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8104   $COL_RESET"
  2126. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8105   $COL_RESET"
  2127. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8106   $COL_RESET"
  2128. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8107   $COL_RESET"
  2129. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8108   $COL_RESET"
  2130. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8109   $COL_RESET"
  2131. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8110   $COL_RESET"
  2132. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8111   $COL_RESET"
  2133. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8112   $COL_RESET"
  2134. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8113   $COL_RESET"
  2135. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8114   $COL_RESET"
  2136. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8115   $COL_RESET"
  2137. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8116   $COL_RESET"
  2138. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8117   $COL_RESET"
  2139. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8118   $COL_RESET"
  2140. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8119   $COL_RESET"
  2141. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8120   $COL_RESET"
  2142. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8121   $COL_RESET"
  2143. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8122   $COL_RESET"
  2144. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8123   $COL_RESET"
  2145. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8124   $COL_RESET"
  2146. echo -e "$COL_GREEN     $COL_RESET Go to your server address :$COL_GREEN http://"$ipaddress":8125   $COL_RESET"
  2147. echo -e "$COL_YELLOW      Login: admin and Pass: only you know !  $COL_RESET"
  2148. echo ""
  2149. }
  2150. ######## CHANGELOG ########
  2151. set_changelog(){
  2152. clear
  2153. echo -e "$COL_GREEN######################################################### $COL_RESET"
  2154. echo -e "$COL_GREEN#                        $COL_GREEN Changelog                     # $COL_RESET"
  2155. echo -e "$COL_GREEN#                 Last updated on$COL_RED $datescriptversion           $COL_GREEN # $COL_RESET"
  2156. echo -e "$COL_GREEN######################################################### $COL_RESET"
  2157. echo -e "$COL_GREEN#     v1.22 - Update$COL_RED SinusBot version 0.9.18-8499d2c$COL_GREEN    # $COL_RESET"
  2158. echo -e "$COL_GREEN#     v1.21 - Update$COL_RED SinusBot version 0.9.16-10f0fad$COL_GREEN    # $COL_RESET"
  2159. echo -e "$COL_GREEN#     v1.20 - Updated and Added new SinusBot scripts    # $COL_RESET"
  2160. echo -e "$COL_GREEN#     v1.19 - Update$COL_RED SinusBot version 0.9.15-b20cc30$COL_GREEN    # $COL_RESET"
  2161. echo -e "$COL_GREEN#     v1.18 - Added get SinusBot AIO Installer PREMIUM  # $COL_RESET"
  2162. echo -e "$COL_GREEN#     v1.17 - Added Make a donate and Donation Goal     # $COL_RESET"
  2163. echo -e "$COL_GREEN#     v1.16 - Fixe bugs Updated Scripts                 # $COL_RESET"
  2164. echo -e "$COL_GREEN#     v1.15 - Fixe SinusBot AIO Installer               # $COL_RESET"
  2165. echo -e "$COL_GREEN#     v1.14 - New hosting with new sources files.       # $COL_RESET"
  2166. echo -e "$COL_GREEN#     v1.13 - Fixe bugs, Updated and Added new scripts  # $COL_RESET"
  2167. echo -e "$COL_GREEN#     v1.12 - Updated SinusBot scripts and languages    # $COL_RESET"
  2168. echo -e "$COL_GREEN#     v1.11 - Added script Auto Checking for Updates    # $COL_RESET"
  2169. echo -e "$COL_GREEN#     v1.10 - Added options 6; 7; R; U; A; L; C         # $COL_RESET"
  2170. echo -e "$COL_GREEN#     v1.00 -$COL_RED /!\ Total rewrite of the script /!\      $COL_GREEN # $COL_RESET"
  2171. echo -e "$COL_GREEN#           -$COL_CYAN Added encryption and expiration date     $COL_GREEN # $COL_RESET"
  2172. echo -e "$COL_GREEN######################################################### $COL_RESET"
  2173. echo ""
  2174. restart_script
  2175. }
  2176.  
  2177. ######## DONATION #########
  2178. set_donation(){
  2179. clear
  2180. echo -e "$COL_GREEN######################################################### $COL_RESET"
  2181. echo -e "$COL_GREEN#             $COL_GREEN YOUR GIFTS IT'S ME STRENGTH !            # $COL_RESET"
  2182. echo -e "$COL_GREEN#     $COL_YELLOW I want to thank all the generous donors who     $COL_GREEN # $COL_RESET"
  2183. echo -e "$COL_GREEN#     $COL_YELLOW understand the importance of giving, without    $COL_GREEN # $COL_RESET"
  2184. echo -e "$COL_GREEN#            $COL_YELLOW my script that could not exist.          $COL_GREEN # $COL_RESET"
  2185. printf "$COL_GREEN######################################################### $COL_RESET\n"
  2186. printf "$COL_GREEN#$COL_YELLOW   DONATIONS RECEIVED $COL_RED"; curl $call_donate_received;
  2187. printf "    $COL_CYAN   DONATION GOAL $COL_RED"; curl $call_donation_goal; printf "$COL_GREEN   # $COL_RESET\n"
  2188. echo -e "$COL_GREEN######################################################### $COL_RESET"
  2189. echo -e "$COL_GREEN#                $COL_RED HOW TO MAKE A DONATION ?             $COL_GREEN # $COL_RESET"
  2190. echo -e "$COL_GREEN#       I agree preferably donations via the famous     # $COL_RESET"
  2191. echo -e "$COL_GREEN#   $COL_YELLOW Paysafecard secure payment system$COL_GREEN. Of course you   # $COL_RESET"
  2192. echo -e "$COL_GREEN#        must have a valid bank account to donate.      # $COL_RESET"
  2193. echo -e "$COL_GREEN# Most regulars with shopping online using Paysafecard. # $COL_RESET"
  2194. echo -e "$COL_GREEN#      For this,$COL_CYAN contact me by E-mail$COL_GREEN and providing me  # $COL_RESET"
  2195. echo -e "$COL_GREEN#    $COL_MAGENTA the 16-digit code of the amount of your choice ! $COL_GREEN # $COL_RESET"
  2196. echo -e "$COL_GREEN#                   --------------------                # $COL_RESET"
  2197. echo -e "$COL_GREEN#                       $COL_RED Buy Online                    $COL_GREEN # $COL_RESET"
  2198. echo -e "$COL_GREEN#                   1. Join$COL_YELLOW WKV.com                    $COL_GREEN # $COL_RESET"
  2199. echo -e "$COL_GREEN#          2. Buy a Paysafecard$COL_RED in EURO (€) only$COL_GREEN !      # $COL_RESET"
  2200. echo -e "$COL_GREEN#     3. You will receive a 16-digit code by email.     # $COL_RESET"
  2201. echo -e "$COL_GREEN#                                                       # $COL_RESET"
  2202. echo -e "$COL_GREEN#                      $COL_RED Buy in Store                   $COL_GREEN # $COL_RESET"
  2203. echo -e "$COL_GREEN#        1. Locate a store on paysafecard outlets       # $COL_RESET"
  2204. echo -e "$COL_GREEN#     $COL_YELLOW paysafecard.com/en-us/buy/find-sales-outlets    $COL_GREEN # $COL_RESET"
  2205. echo -e "$COL_GREEN# 2. See you in: Tobacco, Press House, Video Game Store # $COL_RESET"
  2206. echo -e "$COL_GREEN#          3. Buy a Paysafecard$COL_RED in EURO (€) only$COL_GREEN !      # $COL_RESET"
  2207. echo -e "$COL_GREEN# 4. You will be given a ticket with a 16-digit code.   # $COL_RESET"
  2208. echo -e "$COL_GREEN#                                                       # $COL_RESET"
  2209. echo -e "$COL_GREEN#                $COL_RED Where sent the donate ?              $COL_GREEN # $COL_RESET"
  2210. echo -e "$COL_GREEN#    Now you can send me by e-mail the 16-digit code.   # $COL_RESET"
  2211. echo -e "$COL_GREEN#                $COL_BLUE XECUTIONER.FR@GMAIL.COM              $COL_GREEN # $COL_RESET"
  2212. echo -e "$COL_GREEN######################################################### $COL_RESET"
  2213. echo ""
  2214. restart_script
  2215. }
  2216.  
  2217. ######### PREMIUM #########
  2218. set_premium(){
  2219. clear
  2220. echo -e "$COL_GREEN######################################################### $COL_RESET"
  2221. 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"
  2222. printf "$COL_GREEN SinusBot AIO Installer$COL_RED $scriptversion$COL_GREEN   #$COL_RESET\n"
  2223. echo -e "$COL_GREEN######################################################### $COL_RESET"
  2224. echo -e "$COL_GREEN#        For get the$COL_RED PREMIUM version$COL_GREEN of my script.     $COL_GREEN # $COL_RESET"
  2225. echo -e "$COL_GREEN#        Please$COL_YELLOW make a donation$COL_GREEN of$COL_RED 25 euro (€)$COL_GREEN.        $COL_GREEN # $COL_RESET"
  2226. echo -e "$COL_GREEN#        Once received the donation,$COL_MAGENTA you will receive  $COL_GREEN # $COL_RESET"
  2227. echo -e "$COL_GREEN#        by email$COL_MAGENTA your access$COL_GREEN to the$COL_RED PREMIUM version$COL_GREEN !  # $COL_RESET"
  2228. echo -e "$COL_GREEN#                                                       # $COL_RESET"
  2229. echo -e "$COL_GREEN#               $COL_YELLOW LIST OF ALL ADVANTAGES:               $COL_GREEN # $COL_RESET"
  2230. echo -e "$COL_GREEN#   $COL_GREEN No password, no expiration date and all updates ! $COL_GREEN # $COL_RESET"
  2231. echo -e "$COL_GREEN#   $COL_GREEN Possibility to create more bots 20, 30, 50 ...    $COL_GREEN # $COL_RESET"
  2232. echo -e "$COL_GREEN#             Therefore,$COL_CYAN VALID FOR LIFETIME$COL_GREEN !           # $COL_RESET"
  2233. echo -e "$COL_GREEN######################################################### $COL_RESET"
  2234. echo -e "$COL_RESET"
  2235.  
  2236. case $answer in
  2237. *)
  2238. printf "${COL_GREEN}Press any key to learn more...\n${NC}"
  2239. read -n 1
  2240. clear
  2241. set_donation
  2242. ;;
  2243. esac
  2244. }
  2245.  
  2246. ######### CREDITS #########
  2247. set_credits(){
  2248. clear
  2249. echo -e "$COL_GREEN######################################################### $COL_RESET"
  2250. echo -e "$COL_GREEN#                         $COL_GREEN Credits                      # $COL_RESET"
  2251. echo -e "$COL_GREEN######################################################### $COL_RESET"
  2252. echo -e "$COL_GREEN#                     $COL_YELLOW SPECIAL THANKS TO               $COL_GREEN # $COL_RESET"
  2253. echo -e "$COL_GREEN#     - Team$COL_RED SinusBot / Flyth$COL_GREEN for making the SinusBot   # $COL_RESET"
  2254. echo -e "$COL_GREEN#     -$COL_RED Supervisor$COL_GREEN for assistance of my script          # $COL_RESET"
  2255. echo -e "$COL_GREEN#     -$COL_RED hASVAN$COL_GREEN for assistance of my script              # $COL_RESET"
  2256. echo -e "$COL_GREEN#     -$COL_RED Joxi$COL_GREEN for the tutorials in videos                # $COL_RESET"
  2257. echo -e "$COL_GREEN#     -$COL_RED Sa7er$COL_GREEN for have tried and report the bugs        # $COL_RESET"
  2258. echo -e "$COL_GREEN######################################################### $COL_RESET"
  2259. echo ""
  2260. restart_script
  2261. }
  2262.  
  2263. ##### CHECK VERISON SCRIPT #####
  2264. check_version(){
  2265. if [ $check_for_updates -eq 1 ]; then
  2266.     printf "$COL_RED   Checking for updates... $COL_RESET"
  2267.     curl -s -m $timeout --head $call_home/sinusbot_aio_version.php | head -n 1 | grep "HTTP/1.[01] [2].." > /dev/$
  2268.     if [ $? = 1 ];
  2269.     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}"
  2270.     else
  2271.         sversion=$(wget $call_home/sinusbot_aio_version.php?version -q -O -)
  2272.         if [ $sversion \> $scriptversion ];
  2273.             then printf "${COLOR1}\nA new script version is available, downloading it...\n${NC}"
  2274.             update_script
  2275.             else printf "$COL_YELLOW    ...script is up to date !$COL_GREEN$COL_RESET \n${NC}"
  2276.         fi
  2277.     fi
  2278. fi
  2279. }
  2280. update_script(){
  2281. slink=$(wget $call_home/sinusbot_aio_version.php?link -q -O -)
  2282. wget $slink -q -O sinusbot_aio_installer_$sversion
  2283. chmod +x sinusbot_aio_installer_$sversion
  2284. rm sinusbot_aio_installer_$scriptversion
  2285. ./sinusbot_aio_installer_$sversion
  2286. }
  2287.  
  2288. ##### RESTART SCRIPT #####
  2289. restart_script(){
  2290. printf "${COL_GREEN}Done. Press any key to continue...\n${NC}"
  2291. read -n 1
  2292. clear
  2293. $0
  2294. }
  2295.  
  2296. restart_script2(){
  2297. printf "${COL_RED}Bad Choice. Try Again !\n${NC}"
  2298. read -n 1
  2299. clear
  2300. $0
  2301. }
  2302.  
  2303. restart_script3(){
  2304. printf "${COL_RED}$COL_RED Coming Soon !\n${NC}"
  2305. read -n 1
  2306. clear
  2307. $0
  2308. }
  2309.  
  2310. ##### CREATE USER #####
  2311. set_user(){
  2312. printf "${COLOR1}Choose a user for installation. If the user does not exist, it will be created:   ${NC}"
  2313. read answer
  2314. case $answer in
  2315. [rR][oO0][oO0][tT])
  2316.     printf "${COLOR1}User ${COLOR2}$answer${COLOR1} is not valid. Aborting...\n${NC}"
  2317.     exit 1
  2318. ;;
  2319. [a-zA-Z0-9]*)
  2320.     teamspeakuser="$answer"
  2321.     if id -u "$sinusbotuser" >/dev/null 2>&1;
  2322.     then    if [ ! -d /home/$sinusbotuser/ ]
  2323.             then    printf "${COLOR1}Could not find home directory, creating it..\n${NC}"
  2324.                     mkdir /home/$sinusbotuser
  2325.                     chown $sinusbotuser:$sinusbotuser /home/$sinusbotuser
  2326.             fi
  2327.     else
  2328.        printf "${COLOR1}User does not exist. Creating it...\n${NC}"
  2329.     adduser $sinusbotuser
  2330.     fi
  2331. ;;
  2332. *)  printf "${COLOR1}User '$answer' is not valid. Aborting...\n${NC}"
  2333.     exit 1
  2334. ;;
  2335. esac
  2336. }
  2337.  
  2338. ##### MENU #####
  2339. show_script_password
  2340. show_SinusBotInstall
  2341. check_version
  2342. #show_expires
  2343. show_SinusBotScripts
  2344. show_SinusBotAutoScripts
  2345.  
  2346. case "$main_menu" in
  2347. # Note variable is quoted.
  2348.  
  2349.   "0" )  
  2350.   echo -e "$COL_YELLOW This is a$COL_GREEN Easter Eggs$COL_YELLOW !$COL_RESET"
  2351.   echo ""
  2352.   restart_script3
  2353.   ;;
  2354.  
  2355.   "1" )  
  2356.   set_dependencies
  2357.   set_sinusbot_install
  2358.   set_ts3_client_install
  2359.   set_setting_sinusbot
  2360.   set_created_sinusbot_1instance
  2361.   set_launch_sinusbot_1instance
  2362.   ;;
  2363.  
  2364.   "2" )  
  2365.   set_dependencies
  2366.   set_sinusbot_install
  2367.   set_ts3_client_install
  2368.   set_setting_sinusbot
  2369.   set_created_sinusbot_2instances
  2370.   set_launch_sinusbot_2instances
  2371.   ;;
  2372.  
  2373.   "3" )  
  2374.   set_dependencies
  2375.   set_sinusbot_install
  2376.   set_ts3_client_install
  2377.   set_setting_sinusbot
  2378.   set_created_sinusbot_3instances
  2379.   set_launch_sinusbot_3instances
  2380.   ;;
  2381.  
  2382.   "4" )  
  2383.   set_dependencies
  2384.   set_sinusbot_install
  2385.   set_ts3_client_install
  2386.   set_setting_sinusbot
  2387.   set_created_sinusbot_5instances
  2388.   set_launch_sinusbot_5instances
  2389.   ;;
  2390.  
  2391.   "5" )  
  2392.   set_dependencies
  2393.   set_sinusbot_install
  2394.   set_ts3_client_install
  2395.   set_setting_sinusbot
  2396.   set_created_sinusbot_10instances
  2397.   set_launch_sinusbot_10instances
  2398.   ;;
  2399.  
  2400.   "6" )  
  2401.   set_dependencies
  2402.   set_sinusbot_install
  2403.   set_ts3_client_install
  2404.   set_setting_sinusbot
  2405.   set_created_sinusbot_15instances
  2406.   set_launch_sinusbot_15instances
  2407.   ;;
  2408.  
  2409.   "7" )  
  2410.   set_dependencies
  2411.   set_sinusbot_install
  2412.   set_ts3_client_install
  2413.   set_setting_sinusbot
  2414.   set_created_sinusbot_25instances
  2415.   set_launch_sinusbot_25instances
  2416.   ;;
  2417.  
  2418.   "r" | "R" )  
  2419.   set_uninstall
  2420.   ;;
  2421.  
  2422.   "a" | "A" )  
  2423.   set_auto_start
  2424.   ;;
  2425.  
  2426.   "u" | "U" )  
  2427.   set_update
  2428.   ;;
  2429.  
  2430.   "c" | "C" )  
  2431.   set_credits
  2432.   ;;
  2433.  
  2434.   "l" | "L" )  
  2435.   set_changelog
  2436.   ;;
  2437.  
  2438.   "d" | "D" )  
  2439.   set_donation
  2440.   ;;
  2441.  
  2442.   "p" | "P" )  
  2443.   set_premium
  2444.   ;;
  2445.  
  2446.   "q" | "Q" )  
  2447.   echo -e "$COL_GREEN Goodbye$COL_RESET"
  2448.   echo ""
  2449.   ;;  
  2450.  
  2451.     * )
  2452.    # Default option.
  2453.    restart_script2
  2454.   ;;
  2455.  
  2456. esac
  2457. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement