13 lines
457 B
Bash
Executable File
13 lines
457 B
Bash
Executable File
#!/bin/bash
|
|
|
|
mkdir -p -m 0700 $SERVERDIR/usr/local/foundationdb/data
|
|
mkdir -p -m 0700 $SERVERDIR/usr/local/foundationdb/logs
|
|
|
|
if [ -f /Library/LaunchDaemons/com.foundationdb.fdbmonitor.plist ]; then
|
|
/bin/launchctl unload /Library/LaunchDaemons/com.foundationdb.fdbmonitor.plist || :
|
|
fi
|
|
|
|
if [ -f /usr/local/etc/foundationdb/foundationdb.conf ]; then
|
|
mv /usr/local/etc/foundationdb/foundationdb.conf /usr/local/etc/foundationdb/foundationdb.conf.old
|
|
fi
|