Skip to content

Commit

Permalink
srv-m: fix acme post script execution
Browse files Browse the repository at this point in the history
  • Loading branch information
EHfive committed Oct 2, 2023
1 parent 91a5e5f commit 609e81c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion machines/srv-m/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ in
defaultSopsFile = ./secrets/secrets.yaml;
secrets = {
acmeEnv = { };
postScript = { mode = "0500"; };
postScript = { mode = "0500"; owner = "acme"; };
trustedNetworks = { };
bindDnPw = { };
passdbLdap.owner = dovecotUser;
Expand Down
2 changes: 1 addition & 1 deletion machines/srv-m/services.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ in
"*.sokka.cn"
];
postRun = ''
export PATH="$PATH:${pkgs.openssh}/bin:${pkgs.sshpass}/bin"
export PATH="$PATH:${pkgs.bash}/bin/:${pkgs.openssh}/bin:${pkgs.sshpass}/bin"
bash ${secrets.postScript.path}
'';
reloadServices = [
Expand Down

0 comments on commit 609e81c

Please sign in to comment.