Skip to content

Commit e793e3d

Browse files
committed
Create public folder relative to GITEA_CUSTOM in Docker setup
It may not be apparent where a custom robots.txt or such should go in the absence of a 'custom' or 'public' folder.
1 parent 850012b commit e793e3d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docker/root/etc/s6/gitea/setup

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ fi
5959
# Replace app.ini settings with env variables in the form GITEA__SECTION_NAME__KEY_NAME
6060
environment-to-ini --config ${GITEA_CUSTOM}/conf/app.ini
6161

62+
# Create public folder so the user knows where things such as robots.txt should go
63+
mkdir -p ${GITEA_CUSTOM}/public
64+
6265
# only chown if current owner is not already the gitea ${USER}. No recursive check to save time
6366
if ! [[ $(ls -ld /data/gitea | awk '{print $3}') = ${USER} ]]; then chown -R ${USER}:git /data/gitea; fi
6467
if ! [[ $(ls -ld /app/gitea | awk '{print $3}') = ${USER} ]]; then chown -R ${USER}:git /app/gitea; fi

docker/rootless/usr/local/bin/docker-setup.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,6 @@ fi
4949

5050
# Replace app.ini settings with env variables in the form GITEA__SECTION_NAME__KEY_NAME
5151
environment-to-ini --config ${GITEA_APP_INI}
52+
53+
# Create public folder so the user knows where things such as robots.txt should go
54+
mkdir -p ${GITEA_CUSTOM}/public

0 commit comments

Comments
 (0)