File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -40,15 +40,15 @@ function update_script() {
4040 mv /opt/trilium/{db,dump-db} /opt/trilium_backup/
4141 rm -rf /opt/trilium
4242 cd /tmp
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
45- mv trilium- linux-x64-server /opt/trilium
43+ wget -q https://github.com/TriliumNext/Notes/releases/download/${RELEASE} /TriliumNextNotes-Server- ${RELEASE} -linux-x64 .tar.xz
44+ tar -xf TriliumNextNotes-Server- ${RELEASE} -linux-x64 .tar.xz
45+ mv TriliumNextNotes-Server- $RELEASE - linux-x64 /opt/trilium
4646 cp -r /opt/trilium_backup/{db,dump-db} /opt/trilium/
4747 echo " ${RELEASE} " > /opt/${APP} _version.txt
4848 msg_ok " Updated to ${RELEASE} "
4949
5050 msg_info " Cleaning up"
51- rm -rf /tmp/TriliumNextNotes-linux-x64- ${RELEASE} .tar.xz
51+ rm -rf /tmp/TriliumNextNotes-Server- ${RELEASE} -linux-x64 .tar.xz
5252 rm -rf /opt/trilium_backup
5353 msg_ok " Cleaned"
5454
Original file line number Diff line number Diff line change @@ -23,9 +23,9 @@ msg_ok "Installed Dependencies"
2323msg_info " Setup TriliumNext"
2424cd /opt
2525RELEASE=$( curl -s https://api.github.com/repos/TriliumNext/Notes/releases/latest | grep " tag_name" | awk ' {print substr($2, 2, length($2)-3) }' )
26- wget -q https://github.com/TriliumNext/Notes/releases/download/${RELEASE} /TriliumNextNotes-linux-x64- ${RELEASE} .tar.xz
27- tar -xf TriliumNextNotes-linux-x64- ${RELEASE} .tar.xz
28- mv trilium- linux-x64-server /opt/trilium
26+ wget -q https://github.com/TriliumNext/Notes/releases/download/${RELEASE} /TriliumNextNotes-Server- ${RELEASE} -linux-x64 .tar.xz
27+ tar -xf TriliumNextNotes-Server- ${RELEASE} -linux-x64 .tar.xz
28+ mv TriliumNextNotes-Server- $RELEASE - linux-x64 /opt/trilium
2929echo " ${RELEASE} " > " /opt/${APPLICATION} _version.txt"
3030msg_ok " Setup TriliumNext"
3131
@@ -53,7 +53,7 @@ motd_ssh
5353customize
5454
5555msg_info " Cleaning up"
56- rm -rf /opt/TriliumNextNotes-linux-x64- ${RELEASE} .tar.xz
56+ rm -rf /opt/TriliumNextNotes-Server- ${RELEASE} -linux-x64 .tar.xz
5757$STD apt-get -y autoremove
5858$STD apt-get -y autoclean
5959msg_ok " Cleaned"
You can’t perform that action at this time.
0 commit comments