CT Duplicati & Jellyfin: Fixes for upgrade to Debian 13
- Duplicati: Fixed curl commands and migrated install to deb package - Jellyfin: Install failed due to 'missing' libjemalloc, this will now be installed earlier in the process
This commit is contained in:
@@ -1,25 +1,19 @@
|
||||
#!/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 " " |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 || exit 1
|
||||
|
||||
#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
|
||||
unzip /opt/Setup/duplicati.zip -d /opt/duplicati
|
||||
apt install -y /opt/Setup/duplicati.deb
|
||||
#Remove Archive
|
||||
rm /opt/Setup/duplicati.zip
|
||||
rm /opt/Setup/duplicati.deb
|
||||
#Install updates-cript
|
||||
mv /opt/Setup/Scripts/UpdateDuplicati.sh /opt/UpdateDuplicati.sh
|
||||
#Move configuration inplace
|
||||
mv /opt/Setup/duplicati-installed /opt/Duplicati-installed
|
||||
mv /opt/Setup/Configs/Duplicati-env /etc/default/duplicati
|
||||
#Installing and enabling service
|
||||
mv /opt/Setup/Configs/duplicati.service /lib/systemd/system/duplicati.service
|
||||
chmod +x /lib/systemd/system/duplicati.service
|
||||
#Enabling service
|
||||
ln -s /lib/systemd/system/duplicati.service /etc/systemd/system/multi-user.target.wants/duplicati.service
|
||||
#Fix SSL sert
|
||||
/usr/share/ca-certificates/mozilla/DST_Root_CA_X3.crt
|
||||
update-ca-certificates
|
||||
Reference in New Issue
Block a user