Permalink
Browse files

temporary fix for digital ocean resetting sshd_config

  • Loading branch information...
Raekye committed Jan 20, 2019
1 parent 47cd573 commit a3dd0200a5da838096eff46c94de66ac8e5d2b4f
Showing with 5 additions and 1 deletion.
  1. +1 −1 app/views/pages/about.html.erb
  2. +4 −0 app/workers/setup_server_worker.rb
@@ -56,7 +56,7 @@
<dt>If Digital Ocean is hosting the server, what is Gamocosm doing?</dt>
<dd>
<p>Gamocosm sets up your server.
Digital Ocean provides a bare, vanilla server, so you/Gamocosm needs to install and configure it to be a ready, secure Minecraft server.
Digital Ocean provides a bare linux server, so you/Gamocosm needs to install and configure it to be a ready, secure Minecraft server.
If you're interested, check this <%= link_to 'wiki page', wiki_server_additional_info_path %> for more info on the setup.</p>

<p><strong>Secondly, Digital Ocean continues charging you when you <em>just</em> stop a server</strong>, because its resources are still allocated.
@@ -174,6 +174,10 @@ def base_update(user, server, host)
begin
on host do
Timeout::timeout(16) do
within '/' do
execute :sed, '-i', "'s/^PasswordAuthentication no/PasswordAuthentication yes/'", '/etc/ssh/sshd_config'
execute :systemctl, 'restart', 'sshd'
end
within '/opt/gamocosm/' do
execute :su, 'mcuser', '-c', "'git remote set-url origin \"#{mcsw_git_url}\"'"
execute :su, 'mcuser', '-c', '"git checkout master"'

0 comments on commit a3dd020

Please sign in to comment.