1
0
mirror of https://github.com/akpall/akpella.git synced 2026-02-21 08:36:59 +00:00
Files
akpella/files/generate-secrets.service

11 lines
280 B
Desktop File

[Unit]
Description=Create secrets if they don't exist
ConditionPathExists=!/home/core/postgresql/secret
[Service]
Type=oneshot
ExecStart=/bin/bash -c 'echo "POSTGRES_PASSWORD=$(/usr/bin/openssl rand -base64 20)" > /home/core/postgresql/secret'
[Install]
WantedBy=sysinit.target