#!/bin/bash # Sleep for a few seconds (if needed) # sleep 5 # Start Couchbase Server if [ "$(whoami)" = "couchbase" ]; then exec /opt/couchbase/bin/couchbase-server -- -kernel global_enable_tracing false -noinput else exec chpst -ucouchbase /opt/couchbase/bin/couchbase-server -- -kernel global_enable_tracing false -noinput fi # Keep the script running to prevent the container from exiting # tail -f /dev/null