Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 17 lines (14 sloc) 358 Bytes
#!/bin/bash
set -Eeuo pipefail
FOSSILDB_HOME=$(dirname $(readlink -f $0))
if [ "$(id -u)" = '0' ]; then
for SUBDIR in data backup; do
DIR=$FOSSILDB_HOME/$SUBDIR
if [ -d "$DIR" ]; then
chown -R fossildb $DIR
fi
done
exec gosu fossildb java -jar $FOSSILDB_HOME/fossildb.jar $@
else
exec java -jar $FOSSILDB_HOME/fossildb.jar $@
fi
You can’t perform that action at this time.