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..926d22c6be 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