Stack permissions: gokapi dir readable by docker group, drop paperless leftover .env
dockcheck runs as phil (docker group) and couldn't read /opt/stacks/gokapi (0700 root), so the labelled gokapi container could never be auto-updated. Paperless's root-only .env (2024 leftover, unused, same values as docker-compose.env) made docker compose fail for phil. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
bfb712703b
commit
183d105594
2 files changed
+19
-2
No files matched your search
@@ -2,13 +2,22 @@
|
||||
# Gokapi logs in through Pocket ID. config.json is written only on a fresh
|
||||
# install (Gokapi rewrites it on upgrades), so changing the template later
|
||||
# means deleting /opt/stacks/gokapi/config/config.json first.
|
||||
- name: make gokapi directories
|
||||
# The stack directory is readable by the docker group so dockcheck (run as
|
||||
# phil) can recreate the labelled container; config and data stay root-only.
|
||||
- name: make gokapi stack directory
|
||||
ansible.builtin.file:
|
||||
path: /opt/stacks/gokapi
|
||||
state: directory
|
||||
owner: root
|
||||
group: docker
|
||||
mode: '0750'
|
||||
|
||||
- name: make gokapi config and data directories
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
mode: '0700'
|
||||
loop:
|
||||
- /opt/stacks/gokapi
|
||||
- /opt/stacks/gokapi/config
|
||||
- /opt/stacks/gokapi/data
|
||||
|
||||
|
||||
Reference in new issue
Block a user