diff options
Diffstat (limited to 'custom')
-rw-r--r-- | custom/simp_le.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/custom/simp_le.nix b/custom/simp_le.nix index 2b2de3fa..5d502817 100644 --- a/custom/simp_le.nix +++ b/custom/simp_le.nix | |||
@@ -1,4 +1,5 @@ | |||
1 | { stdenv, writeText | 1 | { stdenv, writeText |
2 | , bash | ||
2 | , simp_le | 3 | , simp_le |
3 | , eject | 4 | , eject |
4 | }: | 5 | }: |
@@ -7,6 +8,7 @@ domain: | |||
7 | 8 | ||
8 | let | 9 | let |
9 | script = writeText "cert.sh" '' | 10 | script = writeText "cert.sh" '' |
11 | mkdir -p $dir | ||
10 | cd $dir | 12 | cd $dir |
11 | ${simp_le}/bin/simp_le -d ${domain}:/srv/www/acme/${domain}/ \ | 13 | ${simp_le}/bin/simp_le -d ${domain}:/srv/www/acme/${domain}/ \ |
12 | --email "phikeebaogobaegh@141.li" \ | 14 | --email "phikeebaogobaegh@141.li" \ |
@@ -16,4 +18,4 @@ let | |||
16 | -f key.pem | 18 | -f key.pem |
17 | ''; | 19 | ''; |
18 | in | 20 | in |
19 | "${stdenv}/bin/bash ${script} ${dir} ${domain} > ${eject}/bin/logger -p auth.info" | 21 | "${bash}/bin/bash ${script} ${dir} ${domain} > ${eject}/bin/logger -p auth.info" |