@@ -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
6464msg_ok " Completed Successfully!\n"
6565echo -e " ${CREATING}${GN}${APP} setup has been successfully initialized!${CL} "
6666echo -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} "
0 commit comments