From 487998c3eb3790945eecc1af13ad7e41fca9ff50 Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 22 Sep 2022 12:14:59 -0400 Subject: [PATCH] Update trilium-update.sh --- misc/trilium-update.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misc/trilium-update.sh b/misc/trilium-update.sh index 9220c2d7..eb9a1d88 100644 --- a/misc/trilium-update.sh +++ b/misc/trilium-update.sh @@ -36,10 +36,10 @@ sleep 1 echo -e "${GN} Updating to v${RELEASE}... ${CL}" wget -q https://github.com/zadam/trilium/releases/download/v$RELEASE/trilium-linux-x64-server-$RELEASE.tar.xz -tar -xzf trilium-linux-x64-server-$RELEASE.tar.xz -C /opt/trilium &>/dev/null - +tar -xvf trilium-linux-x64-server-$RELEASE.tar.xz &>/dev/null +cp -r trilium-linux-x64-server/* /opt/trilium/ echo -e "${GN} Cleaning up... ${CL}" -rm trilium-linux-x64-server-$RELEASE.tar.xz +rm -rf trilium-linux-x64-server-$RELEASE.tar.xz trilium-linux-x64-server echo -e "${GN} Starting Trilium... ${CL}" systemctl start trilium.service