From a5c2c1b890c12a9db6baf37dfc5082fbaf8b68a6 Mon Sep 17 00:00:00 2001 From: meaz Date: Wed, 6 Sep 2023 18:33:34 +0000 Subject: [PATCH] 1.19.4-0 (#33) Co-authored-by: meaz Reviewed-on: https://git.disroot.org/Disroot-Ansible/forgejo/pulls/33 Reviewed-by: muppeth --- tasks/configure.yml | 4 ++-- tasks/custom_themes.yml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tasks/configure.yml b/tasks/configure.yml index 3f5d23e..6e36ed2 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -51,7 +51,7 @@ state: 'directory' owner: '{{ forgejo_user }}' group: '{{ forgejo_group }}' - when: forgejo_theme_dir is defined + when: forgejo_extra_files_path is defined tags: config - name: "[CONF] - Deploy img folder" @@ -61,7 +61,7 @@ owner: "{{ forgejo_user }}" group: "{{ forgejo_group }}" mode: 0755 - when: forgejo_theme_dir is defined + when: forgejo_extra_files_path is defined tags: config - name: '[CONF] - Install dependencies for renderers' diff --git a/tasks/custom_themes.yml b/tasks/custom_themes.yml index 6346e19..f794e20 100644 --- a/tasks/custom_themes.yml +++ b/tasks/custom_themes.yml @@ -51,6 +51,8 @@ shell: cmd: find "{{ forgejo_theme_dir }}" -type f -name "*.css" -not -path "{{ forgejo_theme_dir }}/public/*" | xargs cp -t "{{ forgejo_theme_dir }}/public/css" chdir: "{{ forgejo_theme_dir }}" + become: true + become_user: "{{ forgejo_user }}" tags: theme # Lastly, update app.ini by adding the theme's name list.