From 2e098666d104d4a9f523525e629c2c110adce3f0 Mon Sep 17 00:00:00 2001 From: Carsten Ehbrecht Date: Tue, 28 Oct 2014 17:28:45 +0100 Subject: [PATCH] added suport for linuxmint with debian base again --- bootstrap-salt.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 7c38971..b5a3bdd 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -982,11 +982,12 @@ __debian_derivatives_translation() { # If the file does not exist, return [ ! -f /etc/os-release ] && return - DEBIAN_DERIVATIVES="(kali)" + DEBIAN_DERIVATIVES="(kali|linuxmint)" # Mappings kali_1_debian_base="7.0" + linuxmint_1_debian_base="8.0" - # Detect derivates, Kali *only* for now + # Detect derivates, Kali and LinuxMint *only* for now rv=$(grep ^ID= /etc/os-release | sed -e 's/.*=//') # Translate Debian derivatives to their base Debian version @@ -998,6 +999,10 @@ __debian_derivatives_translation() { _major=$(echo "$DISTRO_VERSION" | sed 's/^\([0-9]*\).*/\1/g') _debian_derivative="kali" ;; + linuxmint) + _major=$(echo "$DISTRO_VERSION" | sed 's/^\([0-9]*\).*/\1/g') + _debian_derivative="linuxmint" + ;; esac _debian_version=$(eval echo "\$${_debian_derivative}_${_major}_debian_base") @@ -3576,7 +3581,7 @@ __configure_freebsd_pkg_details() { copyfile $conf_file /etc/pkg/FreeBSD.conf SALT_PKG_FLAGS="-r FreeBSD" ## ensure future ports builds use pkgng - echo "WITH_PKGNG= yes" >> /etc/make.conf + echo "WITH_PKGNG= yes" >> /etc/make.conf } install_freebsd_9_stable_deps() {