Added error handeling for init.sh
This commit is contained in:
@@ -5,7 +5,7 @@ CurrentVersion=$(curl -s https://api.github.com/repos/duplicati/duplicati/releas
|
||||
##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
|
||||
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 || exit 1
|
||||
|
||||
#Extract duplicati
|
||||
unzip /opt/Setup/duplicati.zip -d /opt/duplicati
|
||||
|
||||
Reference in New Issue
Block a user