diff --git a/Installation/epm/arangodb.list b/Installation/epm/arangodb.list index 93eb021095..f13e2da6ab 100644 --- a/Installation/epm/arangodb.list +++ b/Installation/epm/arangodb.list @@ -68,12 +68,13 @@ f 0755 ${rusr} ${rgrp} /Library/LaunchDaemons/org.arangodb.plist.template ${proj %postinstall < /Library/LaunchDaemons/org.arangodb.plist launchctl unload /Library/LaunchDaemons/org.arangodb.plist -launchctl load /Library/LaunchDaemons/org.arangodb.plist -if [ "`find ${data_dir}/arangodb -type d -name 'collection-*'`" == "" ] ; then - ${bindir}/arango-upgrade --database.directory "${data_dir}/arangodb" --uid ${susr} +if [ "`/usr/bin/find ${data_dir}/arangodb -type d -name 'collection-*'`" == "" ] ; then + ${bindir}/arango-upgrade --database.directory "${data_dir}/arangodb" fi +launchctl load /Library/LaunchDaemons/org.arangodb.plist + EOF %preremove <