From 8fa78b4f3461b3fb59258397649bda5748003f5a Mon Sep 17 00:00:00 2001 From: doctor_ew Date: Sun, 8 Dec 2024 13:06:04 -0500 Subject: [PATCH] update postinstall --- apps/services/devbox/app/configmap.yaml | 2 +- apps/services/devbox/files/postinstall.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/services/devbox/app/configmap.yaml b/apps/services/devbox/app/configmap.yaml index 81c355c..2dc736a 100644 --- a/apps/services/devbox/app/configmap.yaml +++ b/apps/services/devbox/app/configmap.yaml @@ -20,7 +20,7 @@ data: tee /etc/apt/sources.list.d/docker.list > /dev/null\nsudo apt-get update \nsudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin\n\necho \"Installing Node...\"\ncurl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh - | bash\ncat <> /home/$USERNAME/.bashrc\nexport NVM_DIR=\"$HOME/.nvm\"\n[ + | bash\ncat <> /home/$USERNAME/.bashrc\nexport NVM_DIR=\"/home/$USERNAME/.nvm\"\n[ -s \"$NVM_DIR/nvm.sh\" ] && \\. \"$NVM_DIR/nvm.sh\" # This loads nvm\n[ -s \"$NVM_DIR/bash_completion\" ] && \\. \"$NVM_DIR/bash_completion\" # This loads nvm bash_completion\nEOF\nsource /home/$USERNAME/.bashrc\nnvm install 18\nnvm use 18\n\n# If everything runs successfully, diff --git a/apps/services/devbox/files/postinstall.sh b/apps/services/devbox/files/postinstall.sh index ea60f97..6cfda89 100644 --- a/apps/services/devbox/files/postinstall.sh +++ b/apps/services/devbox/files/postinstall.sh @@ -45,7 +45,7 @@ sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plug echo "Installing Node..." curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash cat <> /home/$USERNAME/.bashrc -export NVM_DIR="$HOME/.nvm" +export NVM_DIR="/home/$USERNAME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion EOF