Skip to content

Commit d416ff9

Browse files
authored
[Fix] Change Download of Trilium after there change the tag/release logic (#1892)
* change trilium release tag after tag/dl change * change trilium release tag after tag/dl change
1 parent 2e2db66 commit d416ff9

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

ct/trilium.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,22 @@ function update_script() {
3535
RELEASE=$(curl -s https://api.github.com/repos/TriliumNext/Notes/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
3636

3737
msg_info "Stopping ${APP}"
38-
systemctl stop trilium.service
38+
systemctl stop trilium
3939
sleep 1
4040
msg_ok "Stopped ${APP}"
4141

4242
msg_info "Updating to ${RELEASE}"
43-
wget -q https://github.com/TriliumNext/Notes/releases/download/${RELEASE}/TriliumNextNotes-${RELEASE}-server-linux-x64.tar.xz
44-
tar -xf TriliumNextNotes-${RELEASE}-server-linux-x64.tar.xz
43+
wget -q https://github.com/TriliumNext/Notes/releases/download/${RELEASE}/TriliumNextNotes-linux-x64-${RELEASE}.tar.xz
44+
tar -xf TriliumNextNotes-linux-x64-${RELEASE}.tar.xz
4545
cp -r trilium-linux-x64-server/* /opt/trilium/
4646
msg_ok "Updated to ${RELEASE}"
4747

4848
msg_info "Cleaning up"
49-
rm -rf TriliumNextNotes-${RELEASE}-server-linux-x64.tar.xz trilium-linux-x64-server
49+
rm -rf TriliumNextNotes-linux-x64-${RELEASE}.tar.xz trilium-linux-x64-server
5050
msg_ok "Cleaned"
5151

5252
msg_info "Starting ${APP}"
53-
systemctl start trilium.service
53+
systemctl start trilium
5454
sleep 1
5555
msg_ok "Started ${APP}"
5656
msg_ok "Updated Successfully"
@@ -64,4 +64,4 @@ description
6464
msg_ok "Completed Successfully!\n"
6565
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
6666
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
67-
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8080${CL}"
67+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8080${CL}"

install/trilium-install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ msg_ok "Installed Dependencies"
2222
RELEASE=$(curl -s https://api.github.com/repos/TriliumNext/Notes/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
2323

2424
msg_info "Installing TriliumNext"
25-
wget -q https://github.com/TriliumNext/Notes/releases/download/${RELEASE}/TriliumNextNotes-${RELEASE}-server-linux-x64.tar.xz
26-
tar -xf TriliumNextNotes-${RELEASE}-server-linux-x64.tar.xz
25+
wget -q https://github.com/TriliumNext/Notes/releases/download/${RELEASE}/TriliumNextNotes-linux-x64-${RELEASE}.tar.xz
26+
tar -xf TriliumNextNotes-linux-x64-${RELEASE}.tar.xz
2727
mv trilium-linux-x64-server /opt/trilium
2828
msg_ok "Installed TriliumNext"
2929

@@ -53,5 +53,5 @@ customize
5353
msg_info "Cleaning up"
5454
$STD apt-get -y autoremove
5555
$STD apt-get -y autoclean
56-
rm -rf TriliumNextNotes-${RELEASE}-server-linux-x64.tar.xz
56+
rm -rf TriliumNextNotes-linux-x64-${RELEASE}.tar.xz
5757
msg_ok "Cleaned"

0 commit comments

Comments
 (0)