From db71de4ef5d15e2d9d8791d7d71817c057ec3712 Mon Sep 17 00:00:00 2001 From: Derrick Stolee Date: Tue, 20 Aug 2019 13:21:57 -0400 Subject: [PATCH] Mac Installer: unmount all repos Signed-off-by: Derrick Stolee --- Scalar.Installer.Mac/scripts/Distribution.xml | 12 ++++++------ Scalar.Installer.Mac/scripts/preinstall | 7 +++++++ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/Scalar.Installer.Mac/scripts/Distribution.xml b/Scalar.Installer.Mac/scripts/Distribution.xml index bdbd8dce5b..235df0b759 100644 --- a/Scalar.Installer.Mac/scripts/Distribution.xml +++ b/Scalar.Installer.Mac/scripts/Distribution.xml @@ -19,7 +19,7 @@ GIT_PKG_REF_PLACEHOLDER diff --git a/Scalar.Installer.Mac/scripts/preinstall b/Scalar.Installer.Mac/scripts/preinstall index a9bf588e2f..3177cfe591 100755 --- a/Scalar.Installer.Mac/scripts/preinstall +++ b/Scalar.Installer.Mac/scripts/preinstall @@ -1 +1,8 @@ #!/bin/bash + +SCALARBINPATH="/usr/local/scalar/scalar" +if [ -f "${SCALARBINPATH}" ]; then + unmountCmd="${SCALARBINPATH} service --unmount-all" + echo $unmountCmd + eval $unmountCmd || exit 1 +fi \ No newline at end of file