1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

Use correct home directory

This commit is contained in:
Aidan Fitzgerald 2019-03-04 21:41:14 -05:00
parent 4ad50b113d
commit 5d5fea41fa
2 changed files with 2 additions and 1 deletions

View file

@ -36,6 +36,7 @@ gitea_gpg_key: 7C9E68152594688862D62AF62D9AE806EC1592E2
# Information needed to run Gitea # Information needed to run Gitea
gitea_user: gitea gitea_user: gitea
gitea_home: "{{ gitea_root_directory }}"
gitea_run_directory: "{{ gitea_root_directory }}" gitea_run_directory: "{{ gitea_root_directory }}"
gitea_db_directory: "/library/dbdata/gitea" gitea_db_directory: "/library/dbdata/gitea"

View file

@ -18,7 +18,7 @@ Group={{gitea_user}}
WorkingDirectory={{gitea_run_directory}} WorkingDirectory={{gitea_run_directory}}
ExecStart={{gitea_install_path}} web -c /etc/gitea/app.ini ExecStart={{gitea_install_path}} web -c /etc/gitea/app.ini
Restart=always Restart=always
Environment=USER={{gitea_user}} HOME=/home/{{gitea_user}} GITEA_WORK_DIR={{gitea_run_directory}} Environment=USER={{gitea_user}} HOME={{gitea_home}} GITEA_WORK_DIR={{gitea_run_directory}}
# If you want to bind Gitea to a port below 1024 uncomment # If you want to bind Gitea to a port below 1024 uncomment
# the two values below # the two values below
### ###