#!/usr/bin/env bash args="" # Refresh interval if [ -n "$REFRESH_INTERVAL" ]; then args+=" --refresh-interval $REFRESH_INTERVAL" fi # Config file if [ -e "$CONFIG_FILENAME" ] && [ -f "$CONFIG_FILENAME" ]; then # The file is mounted, use it args+=" --config $CONFIG_FILENAME" fi # Launch the application ./rgit [::]:8000 /git -d /tmp/rgit-cache.db $args