Merge Dev to Main (Added Linkwarden & postgresql and minor fixes) #4

Merged
brammp merged 9 commits from dev into main 2025-01-09 20:46:38 +01:00
4 changed files with 28 additions and 3 deletions
Showing only changes of commit 06de3b3c5b - Show all commits

View File

@@ -6,6 +6,7 @@ curl -L -o /opt/monolith-gnu-linux-x86_64 https://github.com/Y2Z/monolith/relea
chmod +x /opt/monolith-gnu-linux-x86_64
echo "$CurmonolithVersion" > /opt/monolith-Version
ln -s /opt/monolith-gnu-linux-x86_64 /usr/local/bin/monolith
mv /opt/Setup/Scripts/Update-monolith.sh /opt/Update-monolith.sh
#Install linkwarden
@@ -29,4 +30,5 @@ apt clean
cd $startpath
cp /opt/node/linkwarden/.env.sample /opt/node/linkwarden/.env
chown node: -R /opt/node/linkwarden
su -c "cd /opt/node/linkwarden; npx playwright install chromium" node
su -c "cd /opt/node/linkwarden; npx playwright install chromium" node
mv /opt/Setup/Scripts/Update-linkwarden.sh /opt/Update-linkwarden.sh

View File

@@ -1,3 +1,4 @@
#!/bin/sh
# Update script for updating apps with ProxmoxHelper/ProxMoxToolKit
ash /opt/Update-monlith.sh
bash /opt/Update-monolith.sh
bash /opt/Update-linkwarden.sh

View File

@@ -0,0 +1,22 @@
#!/bin/bash
CurLinkwardenVersion=$(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 "$CurLinkwardenVersion" = "$(cat /opt/linkwarden-Version)" ; then
echo 'Linkwarden is up-to-date'
exit
else
echo 'Updating Linkwarden'
sudo -u node bash << EOF
/usr/bin/pm2 stop Linkwarden
cd /opt/node/linkwarden
git pull
/usr/bin/yarn install
/usr/bin/yarn prisma generate
/usr/bin/yarn build
/usr/bin/yarn cache clean
/usr/bin/yarn prisma migrate deploy
/usr/bin/pm2 start Linkwarden
npx playwright install chromium
EOF
echo "$CurLinkwardenVersion" > /opt/linkwarden-Version
fi

View File

@@ -2,7 +2,7 @@
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'
echo 'Monolith up-to-date'
exit
else
echo 'Updating Monolith'