diff options
author | Aaron Andersen <aaron@fosslib.net> | 2019-02-23 17:55:54 -0500 |
---|---|---|
committer | Aaron Andersen <aaron@fosslib.net> | 2019-04-13 07:01:00 -0400 |
commit | 0672f867bcec7c41d470fee489a0722a0583388c (patch) | |
tree | b0ab936f301b786fddafb256055cb39ac5c46356 /nixos/modules/services/backup/mysql-backup.nix | |
parent | 89cbee4d3e14968175102e735a422f60145e193f (diff) | |
download | nixpkgs-0672f867bcec7c41d470fee489a0722a0583388c.tar nixpkgs-0672f867bcec7c41d470fee489a0722a0583388c.tar.gz nixpkgs-0672f867bcec7c41d470fee489a0722a0583388c.tar.bz2 nixpkgs-0672f867bcec7c41d470fee489a0722a0583388c.tar.lz nixpkgs-0672f867bcec7c41d470fee489a0722a0583388c.tar.xz nixpkgs-0672f867bcec7c41d470fee489a0722a0583388c.tar.zst nixpkgs-0672f867bcec7c41d470fee489a0722a0583388c.zip |
nixos/mysql-backup: replace deprecated usage of PermissionsStartOnly
see https://github.com/NixOS/nixpkgs/issues/53852
Diffstat (limited to 'nixos/modules/services/backup/mysql-backup.nix')
-rw-r--r-- | nixos/modules/services/backup/mysql-backup.nix | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/nixos/modules/services/backup/mysql-backup.nix b/nixos/modules/services/backup/mysql-backup.nix index f0c273ffebf..ba6e154f6b3 100644 --- a/nixos/modules/services/backup/mysql-backup.nix +++ b/nixos/modules/services/backup/mysql-backup.nix @@ -117,14 +117,12 @@ in enable = true; serviceConfig = { User = cfg.user; - PermissionsStartOnly = true; }; - preStart = '' - mkdir -m 0700 -p ${cfg.location} - chown -R ${cfg.user} ${cfg.location} - ''; script = backupScript; }; + tmpfiles.rules = [ + "d ${cfg.location} 0700 ${cfg.user} - - -" + ]; }; }; |