Fixed installer and git urls in update scripts

This commit is contained in:
2022-09-07 02:25:21 +02:00
parent 290f40319f
commit 543aa8876f
3 changed files with 6 additions and 7 deletions

View File

@@ -8,7 +8,7 @@ printf "OfflineIMAP: checking for upgrades... "
if [ "$NewOfflineIMAPVer" != "$(cat /opt/OfflineIMAP3-installed)" ];
then
echo "update found"
curl -L https://github.com/OfflineIMAP/offlineimap3/archive/refs/tags/$OfflineIMAPVer.tar.gz -o /tmp/olim3.tar.gz
curl -L https://github.com/OfflineIMAP/offlineimap3/archive/refs/tags/$NewOfflineIMAPVer.tar.gz -o /tmp/olim3.tar.gz
mkdir /opt/OfflineIMAP3
tar -C /opt/OfflineIMAP3 -xzf /tmp/olim3.tar.gz --strip 1
sed -i '/kerberos/c\' /opt/OfflineIMAP3/requirements.txt

View File

@@ -1,6 +1,6 @@
#!/bin/ash
##Script for updating SnappyMailVer
NewSnappyMailVer=$(curl -s https://api.github.com/repos/the-djmaze/snappymail/releases/latest | grep 'tag_name.*' | cut -d : -f 2,3 | tr -d \" |tr -d , |tr -d " ")
NewSnappyMailVer=$(curl -s https://api.github.com/repos/the-djmaze/snappymail/releases/latest | grep 'tag_name.*' | cut -d : -f 2,3 | tr -d \" |tr -d , |tr -d " "| tr -d : )
printf "SnappyMail: checking for upgrades... "