mkdir /run/backups/bitwarden_rs

Since the service fails to do it itself.
This commit is contained in:
Henrik Lissner 2021-02-27 15:19:43 -05:00
parent 6a4463ed8d
commit 8ca2cc66ba

View file

@ -22,5 +22,13 @@ in {
port = 80,443,8002
maxretry = 5
'';
# HACK services.bitwarden_rs errors about permissions trying to create
# backupDir in /run/backups, so we do it for it.
system.activationScripts.bitwardenCreateDirs = ''
DIR="${config.services.bitwarden_rs.backupDir}"
mkdir -m 750 -p "$DIR" || true
chown bitwarden_rs:bitwarden_rs "$DIR"
'';
};
}