Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos/acme: Fix postRun in acme certificate being ran at every run #85366

Merged
merged 1 commit into from Apr 18, 2020

Conversation

immae
Copy link
Contributor

@immae immae commented Apr 16, 2020

Motivation for this change

Backport of #85365 to 20.03

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@@ -336,7 +338,10 @@ in
chmod ${fileMode} *.pem
chown '${data.user}:${data.group}' *.pem

${data.postRun}
if [ "$KEY_CHANGED" = "yes" ]; then
: # noop in case postRun is empty
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this : a typo or is this a bash-ism i dont know?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It’s a bash-ism you don’t know :)
It’s noop

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I may replace it with a better-known true if you’re more comfortable

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's fine

@arianvp
Copy link
Member

arianvp commented Apr 16, 2020

@GrahamcOfBorg test acme

@emilazy emilazy mentioned this pull request Apr 16, 2020
10 tasks
@arianvp
Copy link
Member

arianvp commented Apr 17, 2020

cc @worldofpeace

@worldofpeace
Copy link
Contributor

The commit message doesn't match contribution guidelines. Should be like nixos/acme: Fix...

@immae
Copy link
Contributor Author

immae commented Apr 17, 2020

The commit message doesn't match contribution guidelines. Should be like nixos/acme: Fix...

Updated @worldofpeace

@worldofpeace
Copy link
Contributor

@immae I think you forgot to use -x for cherry-pick, or was it not pickable?

@immae
Copy link
Contributor Author

immae commented Apr 17, 2020

@immae I think you forgot to use -x for cherry-pick, or was it not pickable?

No, it’s just not in my practices. I fixed that

@worldofpeace worldofpeace changed the title Fix postRun in acme certificate being ran at every run nixos/acme: Fix postRun in acme certificate being ran at every run Apr 18, 2020
@worldofpeace worldofpeace merged commit a17e021 into NixOS:release-20.03 Apr 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants