mkdir /run/backups/bitwarden_rs
Since the service fails to do it itself.
This commit is contained in:
		
							parent
							
								
									6a4463ed8d
								
							
						
					
					
						commit
						8ca2cc66ba
					
				|  | @ -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" | ||||
|     ''; | ||||
|   }; | ||||
| } | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue