add debian 10 support
This commit is contained in:
@@ -59,14 +59,13 @@ notes:
|
||||
Tool has been tested to work with following distros:
|
||||
|
||||
- CentOS 7 (note LVM file level restore issue from below)
|
||||
- Debian 9
|
||||
- Debian 10
|
||||
- Ubuntu 18.04
|
||||
|
||||
Installation works but not tested frequently:
|
||||
- Debian 8
|
||||
- Debian 9
|
||||
- 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.
|
||||
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
|
||||
- nfs-common
|
||||
- cifs-utils
|
||||
- gnupg (debian 10)
|
||||
```
|
||||
|
2
tests/Debian/Vagrantfile
vendored
2
tests/Debian/Vagrantfile
vendored
@@ -12,7 +12,7 @@ Vagrant.configure(2) do |config|
|
||||
|
||||
# Every Vagrant development environment requires a box. You can search for
|
||||
# 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
|
||||
# boxes will only be checked for updates when the user runs
|
||||
|
@@ -149,6 +149,13 @@ function InstallDependenciesDebian {
|
||||
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"
|
||||
|
||||
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
|
||||
if [[ -z $(which curl) ]]; then
|
||||
echo
|
||||
@@ -604,8 +611,8 @@ function CheckOS {
|
||||
elif [[ -f /etc/os-release ]]; then
|
||||
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}')
|
||||
if [[ $OSNAME == "Debian" ]] && [[ ! $OSVERSION =~ ^(8|9)$ ]]; then
|
||||
echo -e "${FAIL} Only Debian 8/9 supported"
|
||||
if [[ $OSNAME == "Debian" ]] && [[ ! $OSVERSION =~ ^(8|9|10)$ ]]; then
|
||||
echo -e "${FAIL} Only Debian 8/9/10 supported"
|
||||
exit 0
|
||||
elif [[ $OSNAME == "Ubuntu" ]] && [[ ! $OSVERSION =~ ^(16|18)$ ]]; then
|
||||
echo -e "${FAIL} Only Ubuntu 16/18 supported"
|
||||
|
Reference in New Issue
Block a user