mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-24 01:22:21 +00:00
16 lines
580 B
Plaintext
16 lines
580 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
###############################################################
|
||
|
# This script sets defaults for gitea to run in the container #
|
||
|
###############################################################
|
||
|
|
||
|
# It assumes that you place this script as gitea in /usr/local/bin
|
||
|
#
|
||
|
# And place the original in /usr/lib/gitea with working files in /data/gitea
|
||
|
GITEA="/app/gitea/gitea"
|
||
|
WORK_DIR="/app/gitea"
|
||
|
CUSTOM_PATH="/data/gitea"
|
||
|
|
||
|
# Provide docker defaults
|
||
|
GITEA_WORK_DIR="${GITEA_WORK_DIR:-$WORK_DIR}" GITEA_CUSTOM="${GITEA_CUSTOM:-$CUSTOM_PATH}" exec -a "$0" "$GITEA" $CONF_ARG "$@"
|