Facebook
From she#9999, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 72
  1. #!/bin/bash
  2.  
  3. setup(){
  4.   warning "Before we start, make sure to be in the root user."
  5.   warning "Press CTRL-C if you're not in the root user."
  6.   warning "Otherwise, press enter to continiue."
  7.   read key
  8.   output "Making temp folder..."
  9.   mkdir /var/www/pterodactyl/temp
  10.   output "Done!"
  11.   output "Going into the temp folder..."
  12.   cd /var/www/pterodactyl/temp
  13.   output "Done!"
  14.   output "Please type a direct download link to the zipped theme."
  15.   read themelink
  16.   output "Awesome, let's download the file."
  17.   wget $themelink
  18.   output "Super! please tell me zip file name (include the .zip)"
  19.   read zipfile
  20.   output "Fabulous! Let's unzip the file."
  21.   unzip $zipfile
  22.   warning "Piece of cake."
  23.   output "Now, let's delete the unextracted zip file."
  24.   sudo rm -rf $zipfile
  25.   warning "Okay, now it's your turn again. type ls again, and tell me the folder's name. (CASE SENSITIVE)"
  26.   read folderfile
  27.   output "Thank you! lets go into that folder!"
  28.   cd $folderfile
  29.   cd resources
  30.   output "Now, you see the name below you? Please tell me it."
  31.   ls
  32.   read $theme
  33.   output "Thanks! Let's continiue."
  34.   cd ..
  35.   output "Press enter to continiue."
  36.   read temp4
  37.   output "This shouldn't be that hard. Let me try to install the theme."
  38.   ls
  39.   mv resources/ /var/www/pterodactyl/
  40.   mv public/ /var/www/pterodactyl/
  41.   output "Everything should be right now. Let's get rid of the trash."
  42.   cd ..
  43.   sudo rm -rf $folderfile
  44.   output "That should do it. Now, this part is partially manual. I hope you have the nano editor."
  45.   output "Now, if you don't know how to use the nano editor heres a small lesson neccesary for you to know in this scenario."
  46.   warning "NANO LESSON"
  47.   output "To save files, press CTRL-S."
  48.   output "To exit out of the nano edior, press CTRL-X."
  49.   output "If you understand, press enter to continiue."
  50.   read temp
  51.   warning "Now, this should be it, let me install the themes.php file."
  52.   warning "Press any key to continiue.
  53.   read temp2
  54.   sudo rm -rf /var/www/pterodactyl/config/themes.php
  55.   output "All right! I'm going to install the file and you have to follow the instructions in that file. Okay?"
  56.   output "Just remember this:"
  57.   warning "Theme name: $theme"
  58.   warning "Press enter to continiue, and follow the script."
  59.   read temp5
  60.   wget https://www.dropbox.com/s/32aagbfz26466ea/themes.php
  61.   mv themes.php /var/www/pterodactyl/config/themes.php
  62.   cd ..
  63.   output "Cleaning up..."
  64.   sudo rm -rf temp
  65.   nano /var/www/pterodactyl/config/themes.php
  66.  
  67.