src/jdk.jpackage/macosx/classes/jdk/jpackage/internal/resources/preinstall.template
branchJDK-8200758-branch
changeset 57290 47c2aca6c306
parent 57039 98d3963b0b7b
--- a/src/jdk.jpackage/macosx/classes/jdk/jpackage/internal/resources/preinstall.template	Wed Mar 27 18:08:53 2019 -0400
+++ b/src/jdk.jpackage/macosx/classes/jdk/jpackage/internal/resources/preinstall.template	Thu Mar 28 08:08:07 2019 -0700
@@ -1,8 +1,8 @@
 #!/usr/bin/env sh
 
-set -e
-if launchctl list "DEPLOY_DAEMON_IDENTIFIER" &> /dev/null; then
-    launchctl unload "/Library/LaunchDaemons/DEPLOY_LAUNCHD_PLIST_FILE"
+if [ ! -d "INSTALL_LOCATION" ]
+then
+    mkdir -p "INSTALL_LOCATION"
 fi
 
 exit 0