2017-06-05 13:04:03 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-02-10 15:02:38 +01:00
|
|
|
#=================================================
|
2019-03-05 23:17:15 +01:00
|
|
|
# COMMON VARIABLES
|
2019-02-10 15:02:38 +01:00
|
|
|
#=================================================
|
|
|
|
|
2019-03-05 23:11:52 +01:00
|
|
|
|
2019-03-05 23:17:15 +01:00
|
|
|
#=================================================
|
|
|
|
# PERSONAL HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
2022-07-27 10:00:43 +02:00
|
|
|
|
|
|
|
GARAGE_VERSION="0.7.2.1"
|
|
|
|
|
|
|
|
# inspired by restic helper
|
|
|
|
install_garage () {
|
|
|
|
architecture=$(uname -m)
|
|
|
|
arch=''
|
|
|
|
case $architecture in
|
|
|
|
i386|i686)
|
|
|
|
arch="i686"
|
|
|
|
;;
|
|
|
|
x86_64)
|
|
|
|
arch=x86_64
|
|
|
|
;;
|
|
|
|
armv*)
|
|
|
|
arch=armv6l
|
|
|
|
;;
|
|
|
|
aarch64)
|
|
|
|
arch=aarch64
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo
|
|
|
|
ynh_die --message="Unsupported architecture \"$architecture\""
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
wget https://garagehq.deuxfleurs.fr/_releases/v$GARAGE_VERSION/$arch-unknown-linux-musl/garage -O "$app" 2>&1 >/dev/null
|
|
|
|
chmod +x "$app"
|
|
|
|
else
|
|
|
|
ynh_die --message="\nDownloaded file does not match expected sha256 sum, aborting"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2019-02-10 15:02:38 +01:00
|
|
|
#=================================================
|
|
|
|
# EXPERIMENTAL HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
#=================================================
|
2019-02-10 20:04:23 +01:00
|
|
|
# FUTURE OFFICIAL HELPERS
|
2019-02-10 15:02:38 +01:00
|
|
|
#=================================================
|