aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorSandro Santilli <strk@kbt.io>2016-11-07 11:41:50 +0100
committerSandro Santilli <strk@kbt.io>2016-11-07 16:05:18 +0100
commitb7263f31a5a0a4a0ac8fe92c83563d7b7dcf7423 (patch)
tree782bbf98af42c4ffb3d8c38dc787911706d1390e /docker
parent1b962bac0bb00d6ce2bfd29fdeb1f95301e17b98 (diff)
downloadgitea-b7263f31a5a0a4a0ac8fe92c83563d7b7dcf7423.tar.gz
gitea-b7263f31a5a0a4a0ac8fe92c83563d7b7dcf7423.zip
Replace GOGS with GITEA in variable names
Still use GOGS_WORK_DIR and GOGS_CUSTOM env variables as a fallback if the equivalent GITEA_* are not set, warning user about the need for change. Does not change "gogs" to "gitea" in webhook type name Because "gogs" hook type is part of the API (routes) and used in templates... Closes #87
Diffstat (limited to 'docker')
-rwxr-xr-xdocker/build.sh2
-rwxr-xr-xdocker/s6/gogs/setup2
2 files changed, 2 insertions, 2 deletions
diff --git a/docker/build.sh b/docker/build.sh
index fb98b12b87..9965cef376 100755
--- a/docker/build.sh
+++ b/docker/build.sh
@@ -33,4 +33,4 @@ apk --no-progress del build-deps
# Create git user for Gogs
adduser -H -D -g 'Gogs Git User' git -h /data/git -s /bin/bash && passwd -u git
-echo "export GOGS_CUSTOM=${GOGS_CUSTOM}" >> /etc/profile
+echo "export GITEA_CUSTOM=${GITEA_CUSTOM}" >> /etc/profile
diff --git a/docker/s6/gogs/setup b/docker/s6/gogs/setup
index 40bd82b28a..8435e25b6b 100755
--- a/docker/s6/gogs/setup
+++ b/docker/s6/gogs/setup
@@ -6,7 +6,7 @@ if ! test -d ~git/.ssh; then
fi
if ! test -f ~git/.ssh/environment; then
- echo "GOGS_CUSTOM=${GOGS_CUSTOM}" > ~git/.ssh/environment
+ echo "GITEA_CUSTOM=${GITEA_CUSTOM}" > ~git/.ssh/environment
chmod 600 ~git/.ssh/environment
fi