daily pastebin goal


a guest Mar 17th, 2018 319 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. clear
  3. echo "Created by GoodKingJohn (aka dodo721). Send some love to Paypal dodoworkspr@gmail.com <3"
  4. echo "Give hugs to Hubert for SCP: Secret Laboratory and Grover and Kigen for MultiAdmin and ServerMod!"
  5. echo "Enter a name for your server:"
  6. read server_name
  7. echo "server_name = $server_name;" >> ./config-template.txt
  8. echo "ban_database_folder = /home/$USER/.config/SCP Secret Laboratory/Bans;" >> ./config-template.txt
  9. echo "Enter steam username:"
  10. read username
  11. echo "Enter steam password:"
  12. read password
  13. echo "Installing SteamCMD..."
  14. sudo apt-get install -y steamcmd
  15. echo "Installing SCP Secret Laboratory..."
  16. steamcmd +@sSteamCmdForcePlatformType windows +login $username $password +app_update 700330 -beta linux validate +quit
  17. echo "Installing Mono..."
  18. sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
  19. echo "deb http://download.mono-project.com/repo/ubuntu stable-xenial main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
  20. sudo apt-get update
  21. sudo apt-get -y install mono-complete
  22. echo "Do you want to install server modules (MultiAdmin and ServerMod)? [y/n]"
  23. read install_modules
  24. if [ $install_modules = "y" ]
  25. then
  26.     mkdir /tmp/scpsl
  27.     while IFS='' read -r line || [[ -n "$line" ]]; do
  28.         echo "Downloading: $line"
  29.         wget "$line"
  30.     done < "./Module_URLs.txt"
  31.     echo "Installing ServerMod..."
  32.     mkdir "./Backup"
  33.     mv "/home/$USER/.local/share/Steam/steamapps/common/SCP Secret Laboratory/SCPSL_Data/Managed/Assembly-CSharp.dll" "./Backup/Assembly-CSharp.dll"
  34.     mv "./Assembly-CSharp.dll" "/home/$USER/.local/share/Steam/steamapps/common/SCP Secret Laboratory/SCPSL_Data/Managed/Assembly-CSharp.dll"
  35.     echo "Backup of Assembly-CSharp.dll made"
  36.     echo "Installing MultiAdmin..."
  37.     mv "./MultiAdmin.exe" "/home/$USER/.local/share/Steam/steamapps/common/SCP Secret Laboratory/MultiAdmin.exe"
  38.     mkdir "/home/$USER/.local/share/Steam/steamapps/common/SCP Secret Laboratory/servers"
  39.     mkdir "/home/$USER/.local/share/Steam/steamapps/common/SCP Secret Laboratory/servers/firstserver"
  40.     config_path="/home/$USER/.local/share/Steam/steamapps/common/SCP Secret Laboratory/servers/firstserver/config.txt"
  41.     mv "./config-template.txt" "${config_path}"
  42.     printf "cd \"/home/$USER/.local/share/Steam/steamapps/common/SCP Secret Laboratory\"\nmono MultiAdmin.exe" > start_server.sh
  43. else
  44.     config_path="/home/$USER/.config/SCP Secret Laboratory/config.txt"
  45.     mv "./config-template.txt" "${config_path}"
  46.     printf "cd \"/home/$USER/.local/share/Steam/steamapps/common/SCP Secret Laboratory\"\nmono LocalAdmin.exe" > start_server.sh
  47. fi
  48. chmod +x start_server.sh
  49. echo "Server installed! Use ./start_server.sh to start it!"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand