Skip to content

Commit

Permalink
set environment at top of script
Browse files Browse the repository at this point in the history
  • Loading branch information
ericfranz committed Jan 28, 2020
1 parent 3ca4bfe commit 7771e44
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions template/script.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@
end
%>

# Ensure a dataroot for Code Server
# Setup environment
CODE_SERVER="${CODE_SERVER:-/users/PZS0562/efranz/code-server2.1692-vsc1.39.2-linux-x86_64/code-server}"
CODE_SERVER_DATAROOT="$HOME/.local/share/bc_osc_codeserver"


# Ensure a dataroot for Code Server
mkdir -p "$CODE_SERVER_DATAROOT/extensions"

# Expose the password to the server
Expand All @@ -22,12 +26,13 @@ module load git
#
# Start Code Server
#
echo $CODE_SERVER

# An arbitrary path...
/fs/project/PZS0714/mrodgers/bin/code-server-2.1523-vsc1.38.1 \
$CODE_SERVER \
--auth=password \
--port="$port" \
--disable-telemetry \
--extra-extensions-dir="$CODE_SERVER_DATAROOT/extensions" \
--user-data-dir="$CODE_SERVER_DATAROOT" \
"<%= working_dir.to_s %>"
"<%= working_dir.to_s %>"

0 comments on commit 7771e44

Please sign in to comment.