summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2016-01-24 12:19:31 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2016-01-24 12:19:31 +0100
commit2c2adb123227bac3f63726d3a232a270ebb4174d (patch)
treead855f2e39a970c2cd9338b499ee0644b2a9ed41 /custom
parentca22017caf8255aa214333468daff387a7e1a048 (diff)
downloadnixos-2c2adb123227bac3f63726d3a232a270ebb4174d.tar
nixos-2c2adb123227bac3f63726d3a232a270ebb4174d.tar.gz
nixos-2c2adb123227bac3f63726d3a232a270ebb4174d.tar.bz2
nixos-2c2adb123227bac3f63726d3a232a270ebb4174d.tar.xz
nixos-2c2adb123227bac3f63726d3a232a270ebb4174d.zip
shell & directory creation
Diffstat (limited to 'custom')
-rw-r--r--custom/simp_le.nix4
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
8let 9let
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 '';
18in 20in
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"