Skip to content

Instantly share code, notes, and snippets.

@fgarcia
Created January 16, 2014 08:38
Show Gist options
  • Save fgarcia/8451635 to your computer and use it in GitHub Desktop.
Save fgarcia/8451635 to your computer and use it in GitHub Desktop.
This reproduces the exact ENV and PWD captured inside the start-server.sh script
#!/bin/bash
#
# Start CouchBase Server 2.2
##
[ "$HOME" != "" ] && exec -c $0
export SHLVL=1
export HOME=/Users/dominik
export COUCHDB_ADDITIONAL_CONFIG_FILE=/Users/dominik/Library/Preferences/couchbase-server.in
cd "/Applications/Couchbase Server.app/Contents/Resources"
./start-server.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment