Files
HomeServerCTs/CT-Files/duplicati/Scripts/Init.sh
Bram Prieshof 9e8acf8144 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
2025-10-25 19:01:24 +02:00

20 lines
1.0 KiB
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
#Install updates-cript
mv /opt/Setup/Scripts/UpdateDuplicati.sh /opt/UpdateDuplicati.sh
#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