mirror of
https://github.com/linuxserver/docker-mods.git
synced 2026-03-23 00:05:28 +08:00
Merge pull request #419 from linuxserver/code-server-nvm-s6v3
switch to hybrid (code-server-nvm)
This commit is contained in:
commit
a6cd3086e0
16
root/etc/s6-overlay/s6-rc.d/init-mod-code-server-nvm-install/run
Executable file
16
root/etc/s6-overlay/s6-rc.d/init-mod-code-server-nvm-install/run
Executable file
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
NVM_DIR="$HOME/.nvm"
|
||||
|
||||
echo "**** installing nvm ****"
|
||||
if [ ! -s "$NVM_DIR/nvm.sh" ]; then
|
||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
|
||||
|
||||
echo "**** loading nvm ****"
|
||||
source "$NVM_DIR/nvm.sh"
|
||||
|
||||
echo "**** installing the latest release ****"
|
||||
nvm install node
|
||||
else
|
||||
echo "**** nvm already installed, skipping ****"
|
||||
fi
|
||||
@ -0,0 +1 @@
|
||||
oneshot
|
||||
@ -0,0 +1 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-mod-code-server-nvm-install/run
|
||||
Loading…
x
Reference in New Issue
Block a user