fixed installer
This commit is contained in:
parent
a416a883d2
commit
5f253533e4
13
install.sh
13
install.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue