fix(tmpfiles rule): do not remove the contents of the directory

This commit is contained in:
Ryan Yin
2024-11-25 09:22:25 +08:00
parent 595f76e120
commit 1cd6c0b124
3 changed files with 3 additions and 3 deletions

View File

@@ -10,7 +10,7 @@
# Workaround for victoriametrics to store data in another place
# https://www.freedesktop.org/software/systemd/man/latest/tmpfiles.d.html#Type
systemd.tmpfiles.rules = [
"D /data/apps/victoriametrics 0770 root victoriametrics-data - -"
"d /data/apps/victoriametrics 0770 root victoriametrics-data - -"
];
# Symlinks do not work with DynamicUser, so we should use bind mount here.

View File

@@ -8,7 +8,7 @@ in {
# Create Directories
# https://www.freedesktop.org/software/systemd/man/latest/tmpfiles.d.html#Type
systemd.tmpfiles.rules = [
"D ${dataDir} 0755 ${user} ${user}"
"d ${dataDir} 0755 ${user} ${user}"
];
services.sftpgo = {