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
1b47c24e62
commit
e9558982ec
1 changed files with 23 additions and 22 deletions
|
@ -26,22 +26,6 @@ $STD apt install -y software-properties-common
|
||||||
$STD apt install -y redis
|
$STD apt install -y redis
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Adding immich user"
|
|
||||||
$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"
|
|
||||||
#source ~/.bashrc
|
|
||||||
su immich -s /usr/bin/bash <<EOF
|
|
||||||
bash <(curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh)
|
|
||||||
export NVM_DIR="\$HOME/.nvm"
|
|
||||||
[ -s "\$NVM_DIR/nvm.sh" ] && \. "\$NVM_DIR/nvm.sh"
|
|
||||||
[ -s "\$NVM_DIR/bash_completion" ] && \. "\$NVM_DIR/bash_completion"
|
|
||||||
nvm install 20
|
|
||||||
EOF
|
|
||||||
msg_ok "Installed Node.js"
|
|
||||||
|
|
||||||
msg_info "Installing Postgresql and pgvector"
|
msg_info "Installing Postgresql and pgvector"
|
||||||
$STD /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y
|
$STD /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y
|
||||||
$STD apt install -y postgresql postgresql-16-pgvector
|
$STD apt install -y postgresql postgresql-16-pgvector
|
||||||
|
@ -79,15 +63,32 @@ ln -s /usr/lib/jellyfin-ffmpeg/ffmpeg /bin/ffmpeg
|
||||||
ln -s /usr/lib/jellyfin-ffmpeg/ffprobe /bin/ffprobe
|
ln -s /usr/lib/jellyfin-ffmpeg/ffprobe /bin/ffprobe
|
||||||
msg_ok "Installed ffmpeg yellyfin"
|
msg_ok "Installed ffmpeg yellyfin"
|
||||||
|
|
||||||
msg_info "Installing ${APPLICATION}"
|
msg_info "Adding immich user"
|
||||||
|
$STD useradd -m immich
|
||||||
|
#TODO: strip user login etc. (make it more a daemon user)
|
||||||
|
msg_ok "User immich added"
|
||||||
|
|
||||||
su immich -s /usr/bin/bash -c "git clone https://github.com/loeeeee/immich-in-lxc.git /tmp/immich-in-lxc"
|
msg_info "Installing Node.js and ${APPLICATION}"
|
||||||
|
su immich -s /usr/bin/bash <<EOF
|
||||||
|
bash <(curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh)
|
||||||
|
export NVM_DIR="\$HOME/.nvm"
|
||||||
|
[ -s "\$NVM_DIR/nvm.sh" ] && \. "\$NVM_DIR/nvm.sh"
|
||||||
|
[ -s "\$NVM_DIR/bash_completion" ] && \. "\$NVM_DIR/bash_completion"
|
||||||
|
nvm install 20
|
||||||
|
git clone https://github.com/loeeeee/immich-in-lxc.git /tmp/immich-in-lxc
|
||||||
cd /tmp/immich-in-lxc
|
cd /tmp/immich-in-lxc
|
||||||
su immich -s /usr/bin/bash -c "./install.sh" # creates env file
|
./install.sh
|
||||||
# Replace password in runtime.env file
|
|
||||||
sed -i 's/A_SEHR_SAFE_PASSWORD/YUaaWZAvtL@JpNgpi3z6uL4MmDMR_w/g' runtime.env
|
sed -i 's/A_SEHR_SAFE_PASSWORD/YUaaWZAvtL@JpNgpi3z6uL4MmDMR_w/g' runtime.env
|
||||||
su immich -s /usr/bin/bash -c "./install.sh" # runs rest of script
|
./install.sh
|
||||||
msg_ok "Installed ${APPLICATION}"
|
EOF
|
||||||
|
|
||||||
|
#su immich -s /usr/bin/bash -c "git clone https://github.com/loeeeee/immich-in-lxc.git /tmp/immich-in-lxc"
|
||||||
|
#cd /tmp/immich-in-lxc
|
||||||
|
#$su immich -s /usr/bin/bash -c "./install.sh" # creates env file
|
||||||
|
# Replace password in runtime.env file
|
||||||
|
#sed -i 's/A_SEHR_SAFE_PASSWORD/YUaaWZAvtL@JpNgpi3z6uL4MmDMR_w/g' runtime.env
|
||||||
|
#su immich -s /usr/bin/bash -c "./install.sh" # runs rest of script
|
||||||
|
msg_ok "Installed Node.js and ${APPLICATION}"
|
||||||
|
|
||||||
msg_info "Creating log directory /var/log/immich"
|
msg_info "Creating log directory /var/log/immich"
|
||||||
mkdir -p /var/log/immich
|
mkdir -p /var/log/immich
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue