fixed installer

This commit is contained in:
snaki 2022-05-29 12:01:09 +02:00
parent a416a883d2
commit 5f253533e4
No known key found for this signature in database
GPG key ID: C57B0E9414459801

View file

@ -7,21 +7,20 @@ install -t /etc/systemd/system/ btrbk.service btrbk.timer
instrclone() { instrclone() {
declare -A osInfo; declare -A osInfo;
osInfo[/etc/redhat-release]=dnf osInfo[/etc/redhat-release]="dnf -y install rclone"
osInfo[/etc/arch-release]=pacman -S osInfo[/etc/arch-release]="pacman -Sy --noconfirm rclone"
osInfo[/etc/SuSE-release]=zypp osInfo[/etc/debian_version]="curl https://rclone.org/install.sh | sudo bash"
osInfo[/etc/debian_version]=apt
osInfo[/etc/alpine-release]=apk
for f in ${!osInfo[@]} for f in ${!osInfo[@]}
do do
if [[ -f $f ]];then if [[ -f $f ]];then
pkgm=${osInfo[$f]} ${osInfo[$f]}
fi fi
done done
instbtrbk
} }
if which rclone; then if ! which rclone > /dev/null 2>&1; then
instbtrbk instbtrbk
else else
instrclone instrclone