mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
WORKAROUND for Debian derivatives systems
The DISTRO_MAJOR_VERSION is not properly set for Debian's like systems. The bootstrap script fails with 'ERROR: End of life distributions are not supported.' when the derivated system have a version number less than 7.
This commit is contained in:
parent
3ab3d701f8
commit
81b13a9acc
1 changed files with 1 additions and 0 deletions
|
@ -1445,6 +1445,7 @@ __debian_derivatives_translation() {
|
|||
echodebug "Detected Debian $_debian_version derivative"
|
||||
DISTRO_NAME_L="debian"
|
||||
DISTRO_VERSION="$_debian_version"
|
||||
DISTRO_MAJOR_VERSION="$(echo "$DISTRO_VERSION" | sed 's/^\([0-9]*\).*/\1/g')"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue