mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
change Node.js install
This commit is contained in:
parent
cea287741e
commit
9fcca6fc36
1 changed files with 14 additions and 14 deletions
|
@ -26,6 +26,20 @@ $STD apt install -y software-properties-common
|
|||
$STD apt install -y redis
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
msg_info "Installing Node.js"
|
||||
#TODO script crashes at this point, attempt to install as immich user
|
||||
|
||||
#$STD su immich -c "curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash"
|
||||
#$STD su immich -c "bash <(curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh)"
|
||||
#$STD su immich -c "nvm install 20"
|
||||
|
||||
$STD bash <(curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh)
|
||||
. ~/.bashrc
|
||||
$STD nvm install 20
|
||||
$STD export NODE_VERSION="$( node -v )"
|
||||
ln -sf /root/.nvm/versions/node/$NODE_VERSION/bin/node /usr/bin/node
|
||||
msg_ok "Installed Node.js"
|
||||
|
||||
msg_info "Installing Postgresql and pgvector"
|
||||
$STD /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y
|
||||
$STD apt install -y postgresql postgresql-16-pgvector
|
||||
|
@ -68,20 +82,6 @@ $STD useradd -m immich
|
|||
#TODO: strip user login etc. (make it more a daemon user)
|
||||
msg_ok "User immich added"
|
||||
|
||||
msg_info "Installing Node.js"
|
||||
#TODO script crashes at this point, attempt to install as immich user
|
||||
|
||||
#$STD su immich -c "curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash"
|
||||
#$STD su immich -c "bash <(curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh)"
|
||||
#$STD su immich -c "nvm install 20"
|
||||
|
||||
$STD bash <(curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh)
|
||||
#. ~/.bashrc
|
||||
$STD nvm install 20
|
||||
$STD export NODE_VERSION="$( node -v )"
|
||||
ln -sf /root/.nvm/versions/node/$NODE_VERSION/bin/node /usr/bin/node
|
||||
msg_ok "Installed Node.js"
|
||||
|
||||
msg_info "Installing ${APPLICATION}"
|
||||
|
||||
su immich -c "git clone https://github.com/loeeeee/immich-in-lxc.git /tmp"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue