change GITEA_ to FORGEJO_ in env vars
This commit is contained in:
parent
c7eb5ff175
commit
f532454612
|
@ -186,7 +186,7 @@ case "$1" in
|
|||
[ -z "$FORGEJO_HOME" ] && FORGEJO_HOME=/var/lib/forgejo
|
||||
[ -z "$FORGEJO_USER" ] && FORGEJO_USER=forgejo
|
||||
sudo -u $FORGEJO_USER USER=$FORGEJO_USER \
|
||||
HOME=$FORGEJO_HOME GITEA_WORK_DIR=$FORGEJO_HOME \
|
||||
HOME=$FORGEJO_HOME FORGEJO_WORK_DIR=$FORGEJO_HOME \
|
||||
forgejo web -q --config /etc/forgejo/app.ini &
|
||||
sleep 10
|
||||
curl http://localhost:3000/ | grep -A 4 "Powered by Forgejo"
|
||||
|
@ -202,7 +202,7 @@ case "$1" in
|
|||
apt update -qq
|
||||
apt install -y "$3"
|
||||
sudo -u forgejo USER=forgejo \
|
||||
HOME=/var/lib/forgejo GITEA_WORK_DIR=/var/lib/forgejo \
|
||||
HOME=/var/lib/forgejo FORGEJO_WORK_DIR=/var/lib/forgejo \
|
||||
forgejo web -q --config /etc/fogejo/app.ini &
|
||||
sleep 10
|
||||
curl http://localhost:3000/ | grep -A 4 "Powered by Forgejo"
|
||||
|
|
|
@ -61,7 +61,7 @@ WorkingDirectory=~
|
|||
#RuntimeDirectory=forgejo
|
||||
ExecStart=/usr/bin/forgejo web --config /etc/forgejo/app.ini
|
||||
Restart=always
|
||||
Environment=USER=forgejo HOME=/var/lib/forgejo GITEA_WORK_DIR=/var/lib/forgejo
|
||||
Environment=USER=forgejo HOME=/var/lib/forgejo FORGEJO_WORK_DIR=/var/lib/forgejo
|
||||
# If you install Git to directory prefix other than default PATH (which happens
|
||||
# for example if you install other versions of Git side-to-side with
|
||||
# distribution version), uncomment below line and add that prefix to PATH
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
# LimitNOFILE=524288:524288
|
||||
User=git
|
||||
Group=git
|
||||
Environment=USER=git HOME=/var/lib/forgejo GITEA_WORK_DIR=/var/lib/forgejo
|
||||
Environment=USER=git HOME=/var/lib/forgejo FORGEJO_WORK_DIR=/var/lib/forgejo
|
||||
|
|
Loading…
Reference in a new issue