Update trilium-install.sh

switch to TriliumNext
pull/3495/head
tteckster 2024-08-08 12:21:17 -04:00 committed by GitHub
parent daa896894d
commit e428bb8604
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 6 deletions

View File

@ -19,15 +19,13 @@ $STD apt-get install -y sudo
$STD apt-get install -y mc $STD apt-get install -y mc
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
RELEASE=$(curl -s https://api.github.com/repos/zadam/trilium/releases/latest | RELEASE=$(curl -s https://api.github.com/repos/TriliumNext/Notes/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
grep "tag_name" |
awk '{print substr($2, 3, length($2)-4) }')
msg_info "Installing Trilium" msg_info "Installing TriliumNext"
wget -q https://github.com/zadam/trilium/releases/download/v$RELEASE/trilium-linux-x64-server-$RELEASE.tar.xz wget -q https://github.com/TriliumNext/Notes/releases/download/v$RELEASE/trilium-linux-x64-server-$RELEASE.tar.xz
$STD tar -xvf trilium-linux-x64-server-$RELEASE.tar.xz $STD tar -xvf trilium-linux-x64-server-$RELEASE.tar.xz
mv trilium-linux-x64-server /opt/trilium mv trilium-linux-x64-server /opt/trilium
msg_ok "Installed Trilium" msg_ok "Installed TriliumNext"
msg_info "Creating Service" msg_info "Creating Service"
service_path="/etc/systemd/system/trilium.service" service_path="/etc/systemd/system/trilium.service"