Skip to content
Merged
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
2 changes: 1 addition & 1 deletion images/homelab-workspace/coder/agent-startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ create_log_file() {
}

install_rust() {
if [[ ! -d $HOME/.rustup && ! -z "$RUST_VERSION" ]]; then
if [[ ! -d ~/.rustup/toolchains/${RUST_VERSION:?}-$(arch)-unknown-linux-gnu ]]; then
echo "$HOME/.rustup is not present, installing rust $RUST_VERSION ..."
rustup default ${RUST_VERSION} 2>&1
else
Expand Down
4 changes: 2 additions & 2 deletions images/homelab-workspace/coder/entrypoint-prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ maintain_directories() {
local home_dir="/home/${username}"

echo "- Creating directories..."
mkdir $home_dir
mkdir $home_dir/.log/
mkdir -p $home_dir
mkdir -p $home_dir/.log/
echo "- Updating directory permissions..."
chown $username:coder $home_dir
chown $username:coder $home_dir/.log/
Expand Down
2 changes: 1 addition & 1 deletion templates/docker/homelab-workspace/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ locals {
username = local.test_mode ? "coder" : data.coder_workspace_owner.me.name

container_volume_mounts = {
"home" = "/home/coder",
"home" = "/home/${local.username}",
"docker" = "/var/lib/docker"
}
bind_mount_host_paths = {
Expand Down