Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions template/script.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ if [[ -f "$CPP_FILE" ]]; then
mv "$CPP_FILE".new "$CPP_FILE"
fi

# Copy machine settings file
mkdir -p "$CODE_SERVER_DATAROOT/Machine"
cp "$CODE_SERVER_MACHINE_SETTINGS" "$CODE_SERVER_DATAROOT/Machine/settings.json"

#
# Start Code Server.
#
Expand Down
2 changes: 1 addition & 1 deletion view.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
})();
</script>

<% if code_server_version == '4.8.3' %>
<% if Gem::Version.new(code_server_version) >= Gem::Version.new('4.8.3') %>
<form id="<%= form_id %>" action="/rnode/<%= host %>/<%= port %>/login?to=" method="post" target="_blank">
<input type="hidden" name="password" value="<%= password %>">
<% else %>
Expand Down