-domoticz: Fixed Download URL -esphome: Disabled sudo pseudo-terminal while building -kavita: Fixed dailing with existing userdata in update script -nextcloud updated a php opcache setting
18 lines
975 B
Bash
18 lines
975 B
Bash
#!/bin/bash
|
|
|
|
#Get Resources
|
|
##Stable release (Does not support debian 13 du tue libICU)
|
|
#CurrentVersion=$(curl -s https://api.github.com/repos/duplicati/duplicati/releases/latest | grep 'tag_name.*' | cut -d : -f 2,3 | tr -d \" |tr -d , |tr -d " " |tr -d :)
|
|
##Beta version
|
|
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 " " |tr -d : |head -n 1)
|
|
|
|
curl -L --retry 7 --retry-delay 5 "https://github.com/duplicati/duplicati/releases/download/$CurrentVersion/duplicati-${CurrentVersion:1}-linux-x64-cli.deb" -o /opt/Setup/duplicati.deb || exit 1
|
|
#Extract duplicati
|
|
apt install -y /opt/Setup/duplicati.deb
|
|
#Remove Archive
|
|
rm /opt/Setup/duplicati.deb
|
|
#Move configuration inplace
|
|
mv /opt/Setup/Configs/Duplicati-env /etc/default/duplicati
|
|
#Enabling service
|
|
ln -s /lib/systemd/system/duplicati.service /etc/systemd/system/multi-user.target.wants/duplicati.service
|