Compare commits

...

2 Commits

Author SHA1 Message Date
f2bc221663 Outline: change postgres owner
All checks were successful
Linting / YAML Lint (push) Successful in 9s
Linting / Ansible Lint (push) Successful in 16s
2025-12-11 11:26:13 +03:00
b41a50006b Exclude home dir from backups 2025-12-11 10:59:27 +03:00
2 changed files with 3 additions and 3 deletions

View File

@@ -51,9 +51,7 @@ class BackupManager:
"""Get all home directories and their owners""" """Get all home directories and their owners"""
app_dirs = [] app_dirs = []
applications_path = Path("/mnt/applications") applications_path = Path("/mnt/applications")
home_path = Path("/home") source_dirs = applications_path.iterdir()
source_dirs = itertools.chain(applications_path.iterdir(), home_path.iterdir())
for app_dir in source_dirs: for app_dir in source_dirs:
if app_dir == "lost+found": if app_dir == "lost+found":

View File

@@ -64,8 +64,10 @@ services:
outline_postgres: outline_postgres:
image: postgres:16.3-bookworm image: postgres:16.3-bookworm
container_name: outline_postgres container_name: outline_postgres
user: "{{ user_create_result.uid }}:{{ user_create_result.group }}"
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- "/etc/passwd:/etc/passwd:ro"
- "{{ postgres_data_dir }}:/var/lib/postgresql/data" - "{{ postgres_data_dir }}:/var/lib/postgresql/data"
environment: environment:
POSTGRES_USER: '{{ outline_postgres_user }}' POSTGRES_USER: '{{ outline_postgres_user }}'