mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 12:45:27 +03:00
nixos/mysql-backup: replace deprecated usage of PermissionsStartOnly
see https://github.com/NixOS/nixpkgs/issues/53852
This commit is contained in:
parent
89cbee4d3e
commit
0672f867bc
1 changed files with 3 additions and 5 deletions
|
@ -117,14 +117,12 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
User = cfg.user;
|
User = cfg.user;
|
||||||
PermissionsStartOnly = true;
|
|
||||||
};
|
};
|
||||||
preStart = ''
|
|
||||||
mkdir -m 0700 -p ${cfg.location}
|
|
||||||
chown -R ${cfg.user} ${cfg.location}
|
|
||||||
'';
|
|
||||||
script = backupScript;
|
script = backupScript;
|
||||||
};
|
};
|
||||||
|
tmpfiles.rules = [
|
||||||
|
"d ${cfg.location} 0700 ${cfg.user} - - -"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue