mirror of https://gitee.com/bigwinds/arangodb
changed MacOS X postinstall
This commit is contained in:
parent
283f0cd2d0
commit
f42ceed457
|
@ -68,12 +68,13 @@ f 0755 ${rusr} ${rgrp} /Library/LaunchDaemons/org.arangodb.plist.template ${proj
|
||||||
%postinstall <<EOF
|
%postinstall <<EOF
|
||||||
sed -e 's%@BINARY@%${sbindir}/arangod-${version}%g' -e 's%@CONFIGDIR@%/etc/arangodb%g' /Library/LaunchDaemons/org.arangodb.plist.template > /Library/LaunchDaemons/org.arangodb.plist
|
sed -e 's%@BINARY@%${sbindir}/arangod-${version}%g' -e 's%@CONFIGDIR@%/etc/arangodb%g' /Library/LaunchDaemons/org.arangodb.plist.template > /Library/LaunchDaemons/org.arangodb.plist
|
||||||
launchctl unload /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
|
if [ "`/usr/bin/find ${data_dir}/arangodb -type d -name 'collection-*'`" == "" ] ; then
|
||||||
${bindir}/arango-upgrade --database.directory "${data_dir}/arangodb" --uid ${susr}
|
${bindir}/arango-upgrade --database.directory "${data_dir}/arangodb"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
launchctl load /Library/LaunchDaemons/org.arangodb.plist
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
%preremove <<EOF
|
%preremove <<EOF
|
||||||
|
|
Loading…
Reference in New Issue