mirror of
https://github.com/akpall/akpella.git
synced 2026-02-21 00:26:59 +00:00
11 lines
280 B
Desktop File
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
|