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