diff --git a/roles/gitea/defaults/main.yaml b/roles/gitea/defaults/main.yaml index 01c1580..ffe7be3 100644 --- a/roles/gitea/defaults/main.yaml +++ b/roles/gitea/defaults/main.yaml @@ -11,7 +11,6 @@ gitea_bin_path: /usr/local/bin gitea_var_path: /var/lib/gitea gitea_log_path: /var/log/gitea gitea_etc_path: /etc/gitea -gitea_run_path: /run/gitea gitea_path: "{{ gitea_bin_path }}/gitea" gitea_config_path: "{{ gitea_etc_path }}/app.ini" gitea_systemd_unit_path: /etc/systemd/system/gitea.service diff --git a/roles/gitea/tasks/main.yaml b/roles/gitea/tasks/main.yaml index 04cc197..81566dd 100644 --- a/roles/gitea/tasks/main.yaml +++ b/roles/gitea/tasks/main.yaml @@ -58,14 +58,6 @@ state: directory with_items: "{{ gitea_var_tree }}" -- name: "create {{ gitea_run_path }} path" - file: - path: "{{ gitea_run_path }}" - owner: "{{ gitea_user }}" - group: "{{ gitea_group }}" - mode: 0755 - state: directory - - name: "create {{ gitea_log_path }} path" file: path: "{{ gitea_log_path }}" diff --git a/roles/gitea/templates/gitea.service.j2 b/roles/gitea/templates/gitea.service.j2 index a8083d9..1234de2 100644 --- a/roles/gitea/templates/gitea.service.j2 +++ b/roles/gitea/templates/gitea.service.j2 @@ -55,7 +55,7 @@ Group={{ gitea_group }} WorkingDirectory={{ gitea_var_path }} # If using Unix socket: tells systemd to create the /run/gitea folder, which will contain the gitea.sock file # (manually creating /run/gitea doesn't work, because it would not persist across reboots) -#RuntimeDirectory=gitea +RuntimeDirectory=gitea ExecStart={{ gitea_path }} web --config {{ gitea_config_path }} Restart=always Environment=USER={{ gitea_user }} HOME={{ gitea_home_path }} GITEA_WORK_DIR={{ gitea_var_path }}