Deprectated GetExternalResources script
Functionality is now added to init sh off CT that need external resources
This commit is contained in:
@@ -1,4 +1,12 @@
|
||||
#!/bin/bash
|
||||
#Get Resources
|
||||
##Duplicate get latest (Working with mono-devel )
|
||||
CurrentVersion=$(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)
|
||||
#CurrentVersion="v2.0.5.1-2.0.5.1_beta_2020-01-18"
|
||||
echo $CurrentVersion > /opt/Duplicati-installed
|
||||
curl -L --retry 7 --retry-delay 5 $(curl -s https://api.github.com/repos/duplicati/duplicati/releases/tags/"$CurrentVersion" | grep browser_download_url | grep .zip |grep -v signatures | sed -e s#^.*https#https# | tr -d \") -o /opt/Setup/duplicati.zip
|
||||
|
||||
#Extract duplicati
|
||||
unzip /opt/Setup/duplicati.zip -d /opt/duplicati
|
||||
#Remove Archive
|
||||
|
||||
Reference in New Issue
Block a user