add debian 10 support

This commit is contained in:
ronivay
2020-03-16 08:44:42 +02:00
parent e5ab695e9b
commit 354a977b7b
3 changed files with 13 additions and 6 deletions

View File

@@ -59,14 +59,13 @@ notes:
Tool has been tested to work with following distros: Tool has been tested to work with following distros:
- CentOS 7 (note LVM file level restore issue from below) - CentOS 7 (note LVM file level restore issue from below)
- Debian 9 - Debian 10
- Ubuntu 18.04 - Ubuntu 18.04
Installation works but not tested frequently: Installation works but not tested frequently:
- Debian 8 - Debian 8
- Debian 9
- Ubuntu 16.04 - Ubuntu 16.04
- Debian 10 (experimental branch)
- Ubuntu 19 (experimental branch)
In order to use file level restore from delta backups, the service needs to be ran as root. In order to use file level restore from delta backups, the service needs to be ran as root.
CentOS installation is currently not able to do file level restore if the backed up disk contains LVM. CentOS installation is currently not able to do file level restore if the backed up disk contains LVM.
@@ -115,4 +114,5 @@ Debian/Ubuntu:
- lvm2 - lvm2
- nfs-common - nfs-common
- cifs-utils - cifs-utils
- gnupg (debian 10)
``` ```

View File

@@ -12,7 +12,7 @@ Vagrant.configure(2) do |config|
# Every Vagrant development environment requires a box. You can search for # Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search. # boxes at https://atlas.hashicorp.com/search.
config.vm.box = "debian/stretch64" config.vm.box = "debian/buster64"
# Disable automatic box update checking. If you disable this, then # Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs # boxes will only be checked for updates when the user runs

View File

@@ -149,6 +149,13 @@ function InstallDependenciesDebian {
apt-get install -y apt-transport-https ca-certificates >/dev/null apt-get install -y apt-transport-https ca-certificates >/dev/null
echo -e "\r${OK} Installing apt-transport-https and ca-certificates packages to support https repos" echo -e "\r${OK} Installing apt-transport-https and ca-certificates packages to support https repos"
if [[ $OSVERSION == "10" ]]; then
echo
echo -ne "${PROGRESS} Debian 10, so installing gnupg also"
apt-get install gnupg -y >/dev/null
echo -e "\r${OK} Debian 10, so installing gnupg also"
fi
# install curl for later tasks if missing # install curl for later tasks if missing
if [[ -z $(which curl) ]]; then if [[ -z $(which curl) ]]; then
echo echo
@@ -604,8 +611,8 @@ function CheckOS {
elif [[ -f /etc/os-release ]]; then elif [[ -f /etc/os-release ]]; then
OSVERSION=$(grep ^VERSION_ID /etc/os-release | cut -d'=' -f2 | grep -Eo "[0-9]{1,2}" | head -1) OSVERSION=$(grep ^VERSION_ID /etc/os-release | cut -d'=' -f2 | grep -Eo "[0-9]{1,2}" | head -1)
OSNAME=$(grep ^NAME /etc/os-release | cut -d'=' -f2 | sed 's/"//g' | awk '{print $1}') OSNAME=$(grep ^NAME /etc/os-release | cut -d'=' -f2 | sed 's/"//g' | awk '{print $1}')
if [[ $OSNAME == "Debian" ]] && [[ ! $OSVERSION =~ ^(8|9)$ ]]; then if [[ $OSNAME == "Debian" ]] && [[ ! $OSVERSION =~ ^(8|9|10)$ ]]; then
echo -e "${FAIL} Only Debian 8/9 supported" echo -e "${FAIL} Only Debian 8/9/10 supported"
exit 0 exit 0
elif [[ $OSNAME == "Ubuntu" ]] && [[ ! $OSVERSION =~ ^(16|18)$ ]]; then elif [[ $OSNAME == "Ubuntu" ]] && [[ ! $OSVERSION =~ ^(16|18)$ ]]; then
echo -e "${FAIL} Only Ubuntu 16/18 supported" echo -e "${FAIL} Only Ubuntu 16/18 supported"