Load systemd encrypted credentials

This commit is contained in:
cvlc12 2024-07-31 20:24:14 +00:00
parent 424cc6b66c
commit 62222022c3

View File

@ -9,6 +9,10 @@ ConditionACPower=true
[Service]
Type=oneshot
# Load encrypted credentials
LoadCredentialEncrypted=borgpw
Environment=BORG_PASSCOMMAND="cat %d/borgpw"
# Security settings for systemd running as root, optional but recommended to improve security. You
# can disable individual settings if they cause problems for your use case. For more details, see
# the systemd manual: https://www.freedesktop.org/software/systemd/man/systemd.exec.html