diff options
author | 2022-12-21 15:07:10 +0000 | |
---|---|---|
committer | 2022-12-21 15:07:10 +0000 | |
commit | 16763e7de6543a376bcc3e575a3976e1bc51a97b (patch) | |
tree | dcde1314d49a27f41b61ba2960f709f79981d962 /server_bootstrap.sh | |
parent | Add a server bootstrap script (#73) (diff) |
Add instructions to the bootstrap script (#74)
* Add instructions to the bootstrap script
* Make the .ssh folder before making a file within
Diffstat (limited to 'server_bootstrap.sh')
-rw-r--r-- | server_bootstrap.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/server_bootstrap.sh b/server_bootstrap.sh index f98762e..097a8ae 100644 --- a/server_bootstrap.sh +++ b/server_bootstrap.sh @@ -1,11 +1,19 @@ #!/bin/bash # This script is available via pydis.com/bootstrap +# Paste the below lines into netcup 'custom script' box to use. +: ' +#! bin/bash +apt-get update +apt-get install -y curl +curl -fsSL https://raw.githubusercontent.com/python-discord/infra/main/server_bootstrap.sh | bash +' + set -e -apt-get update apt-get upgrade -y +mkdir -p /root/.ssh touch /root/.ssh/authorized_keys cat <<EOT >> /root/.ssh/authorized_keys ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDBYx/b++w2CpKyhSl0mY9lL6c093ghb5eD0uNPkgQTa5cCIaYy73q0w3uTmqoIDuaQk3eHVu0Jk2DvUH16u9f5jLXrMIAbeiQv6giPqyGdulqqJ4LsMCXT8xIV1myTpkXwlzJs6R48byOiupALTkO47MUGFMT+dUsKKSYQqZxdXr5EPxYLM0iziYuIvu2D8wF5Hc9HmL86/E6ScxO4iGGEq452k38hH7appQ9BIJDhDKnsxMm/povO7EBwm9q45b7ifnbiDKO+G041hYwpWx78b+ryUrvHoDv9jUjAHc2HDnN95fbXvbYPKRg2naf1A4Ra+4CKywE3sc/u3oZ9UJUHB3fEXir/MgviztrbSkxhMFwWckxEt6l6H3y71HQx0rFXnzYSuj1T647ntxZBeZZUnHw6DkKYbovLzXiOL4wMr9Xq/9tr7kGxEoKgvTYwk69Win8cQfncXyWfacV3311GNOPx6SCFYnWCVNODyPb+s8R8L+6GfGGRy0V8mEwSJu0= chris@mercury |