CT Duplicati: Updated so latest version of Duplicati can be used

Since newer version of Duplicati doesn't include netstandard.dll, mono-devel is used instead of the runtime package.

There is talk that netstandard.dll might be repacked in a seperate or combined in a existing package.

Also disabled the official Mono apt repo since the debian repo version is compatible
This commit is contained in:
2022-04-25 00:55:45 +02:00
parent 3b5dcf8811
commit e3424f224b
2 changed files with 40 additions and 38 deletions

View File

@@ -52,9 +52,9 @@ GetResource elkarbackupDEB rsnapshot.deb http://ftp.debian.org/debian/pool/main/
GetGithubRelease elkarbackupALP elkarbackup elkarbackup/elkarbackup Elkarbackup-installed
GetResource elkarbackupALP elkb.tar.gz https://github.com/elkarbackup/elkarbackup/archive/refs/tags/$elkarbackupVer.tar.gz -o /tmp/
##Duplicate get latest (non working version)
#duplicatiVer=$(curl -s https://api.github.com/repos/duplicati/duplicati/releases | grep 'tag_name.*' | grep 'beta' | cut -d : -f 2,3 | tr -d \" |tr -d , |tr -d " " |head -n 1)
##Duplicati get older version (Tested working)
duplicatiVer="v2.0.5.1-2.0.5.1_beta_2020-01-18"
##Duplicate get latest (Working with mono-devel )
duplicatiVer=$(curl -s https://api.github.com/repos/duplicati/duplicati/releases | grep 'tag_name.*' | grep 'beta' | cut -d : -f 2,3 | tr -d \" |tr -d , |tr -d " " |head -n 1)
##Duplicati get older version (Working with only the runtime installed)
#duplicatiVer="v2.0.5.1-2.0.5.1_beta_2020-01-18"
echo $duplicatiVer > "CT-Files/duplicati/duplicati-installed"
GetResource duplicati duplicati.zip $(curl -s https://api.github.com/repos/duplicati/duplicati/releases/tags/"$duplicatiVer" | grep browser_download_url | grep .zip |grep -v signatures | sed -e s#^.*https#https# | tr -d \")