Skip to content

Commit

Permalink
Merge pull request NixOS#53045 from NixOS/revert-48844-svc/ddclient
Browse files Browse the repository at this point in the history
Revert "nixos/ddclient: make RuntimeDirectory and configFile private"
  • Loading branch information
infinisil committed Dec 29, 2018
2 parents 8d7da06 + 0702543 commit 6b1a429
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nixos/modules/services/networking/ddclient.nix
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,9 @@ with lib;
serviceConfig = rec {
DynamicUser = true;
RuntimeDirectory = StateDirectory;
RuntimeDirectoryMode = "0750";
StateDirectory = builtins.baseNameOf dataDir;
Type = "oneshot";
ExecStartPre = "!${lib.getBin pkgs.coreutils}/bin/install -m660 ${cfg.configFile} /run/${RuntimeDirectory}/ddclient.conf";
ExecStartPre = "!${lib.getBin pkgs.coreutils}/bin/install -m666 ${cfg.configFile} /run/${RuntimeDirectory}/ddclient.conf";
ExecStart = "${lib.getBin pkgs.ddclient}/bin/ddclient -file /run/${RuntimeDirectory}/ddclient.conf";
};
};
Expand Down

0 comments on commit 6b1a429

Please sign in to comment.