mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-09-09 00:11:13 +02:00
Signed-off-by: Fabian Braun <fabian-braun@mailbox.org>
This commit is contained in:
parent
98ea1a5143
commit
d0f614a25b
|
@ -39,5 +39,8 @@ if [ ! -f /data/gitea/conf/app.ini ]; then
|
||||||
envsubst < /etc/templates/app.ini > /data/gitea/conf/app.ini
|
envsubst < /etc/templates/app.ini > /data/gitea/conf/app.ini
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chown -R ${USER}:git /data/gitea /app/gitea /data/git
|
# only chown if current owner is not already the gitea ${USER}. No recursive check to save time
|
||||||
|
if ! [[ $(ls -ld /data/gitea | awk '{print $3}') = ${USER} ]]; then chown -R ${USER}:git /data/gitea; fi
|
||||||
|
if ! [[ $(ls -ld /app/gitea | awk '{print $3}') = ${USER} ]]; then chown -R ${USER}:git /app/gitea; fi
|
||||||
|
if ! [[ $(ls -ld /data/git | awk '{print $3}') = ${USER} ]]; then chown -R ${USER}:git /data/git; fi
|
||||||
chmod 0755 /data/gitea /app/gitea /data/git
|
chmod 0755 /data/gitea /app/gitea /data/git
|
||||||
|
|
Loading…
Reference in a new issue