Remove old path configs from app.ini
These configuration options were previously overwritten by the storage option but this behavior was changed in Forgejo v1.20.1-0.
This commit is contained in:
parent
992f096189
commit
f8c3c36e4c
|
@ -68,3 +68,27 @@
|
|||
build: false
|
||||
restarted: true
|
||||
remove_orphans: true
|
||||
|
||||
# Fixes for upgrade to Forgejo v1.20.1-0
|
||||
- name: Remove old paths in config file
|
||||
ansible.builtin.lineinfile:
|
||||
path: /srv/docker-compose/forgejo/forgejo/gitea/conf/app.ini
|
||||
state: absent
|
||||
search_string: "{{ item }}"
|
||||
loop:
|
||||
- "gitea/gitea.db"
|
||||
- "[picture]"
|
||||
- "AVATAR_UPLOAD_PATH"
|
||||
- "REPOSITORY_AVATAR_UPLOAD_PATH"
|
||||
- "/data/gitea/attachments"
|
||||
- "[lfs]"
|
||||
- "/data/git/lfs"
|
||||
|
||||
- name: Restart docker compose stack
|
||||
community.docker.docker_compose:
|
||||
project_src: /srv/docker-compose/forgejo/
|
||||
build: false
|
||||
restarted: true
|
||||
remove_orphans: true
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue