Merge Dev to Main (Added Linkwarden & postgresql and minor fixes) #4
@@ -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
|
||||
@@ -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
|
||||
22
CT-Files/linkwarden/Scripts/Update-linkwarden.sh
Normal file
22
CT-Files/linkwarden/Scripts/Update-linkwarden.sh
Normal 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
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user