initial commit uwu
This commit is contained in:
parent
8a8342eec0
commit
a416a883d2
28
install.sh
Normal file
28
install.sh
Normal file
|
@ -0,0 +1,28 @@
|
|||
#!/bin/bash/
|
||||
|
||||
instbtrbk() {
|
||||
install btrbk /usr/local/bin/
|
||||
install -t /etc/systemd/system/ btrbk.service btrbk.timer
|
||||
}
|
||||
|
||||
instrclone() {
|
||||
declare -A osInfo;
|
||||
osInfo[/etc/redhat-release]=dnf
|
||||
osInfo[/etc/arch-release]=pacman -S
|
||||
osInfo[/etc/SuSE-release]=zypp
|
||||
osInfo[/etc/debian_version]=apt
|
||||
osInfo[/etc/alpine-release]=apk
|
||||
|
||||
for f in ${!osInfo[@]}
|
||||
do
|
||||
if [[ -f $f ]];then
|
||||
pkgm=${osInfo[$f]}
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
if which rclone; then
|
||||
instbtrbk
|
||||
else
|
||||
instrclone
|
||||
fi
|
Loading…
Reference in a new issue