pimsync: ensure local storage directories exist (#8359)

pimsync: ensure local storage directories exist

Unfortunately pipsync will throw an error if it trys to write into a
nonexistant local storage directory. This patch ensures that all local
storage directories are present for accounts with pimsync enabled.

* pimsync: use tmpfiles to create storage dirs
* pimsync: fix tests
* pimsync: only use tmpfiles on linux
* pimsync: format
* pimsync: use mkdir to create storage dirs if systemd is not available
This commit is contained in:
Luke Adams 2026-01-12 12:25:16 -05:00 committed by GitHub
parent 167452eb4c
commit cdf6d7d594
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 23 additions and 0 deletions

View file

@ -48,6 +48,8 @@
];
};
test.stubs.systemd.outPath = null;
nmt.script = ''
assertFileExists home-files/.config/pimsync/pimsync.conf
assertFileContent home-files/.config/pimsync/pimsync.conf ${./basic.scfg}