Added CT: Linkwarden

This commit is contained in:
2025-01-05 22:33:27 +01:00
parent c767b21856
commit 37cb093f30
6 changed files with 134 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
#!/bin/bash
CurmonolithVersion=$(curl -s https://api.github.com/repos/Y2Z/monolith/releases/latest | grep 'tag_name.*' | cut -d : -f 2,3 | tr -d \" |tr -d , |tr -d " " |tr -d : )
if test "$CurmonolithVersion" = "$(cat /opt/monolith-Version)" ; then
echo ' echo 'Updating Monolith'.sh up-to-date'
exit
else
echo 'Updating Monolith'
mv /opt/monolith-gnu-linux-x86_64 /opt/monolith-gnu-linux-x86_64.old
curl -L -o /opt/monolith-gnu-linux-x86_64 https://github.com/Y2Z/monolith/releases/download/"$CurmonolithVersion"/monolith-gnu-linux-x86_64
chmod +x /opt/monolith-gnu-linux-x86_64
echo "$CurmonolithVersion" > /opt/monolith-Version
fi