summaryrefslogtreecommitdiff
path: root/kiki.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2016-04-25 22:14:00 -0400
committerjoe <joe@jerkface.net>2016-04-25 22:14:00 -0400
commit769609c28931b01f9c2bdc8740b7553938775e43 (patch)
tree2a08d0f45aba1f084fbf967c778e2378a92b6856 /kiki.hs
parent187a12a4cadf8ea7dc9eee3002117af2265307e8 (diff)
kiki init - now creates gnupg home directory path.
Diffstat (limited to 'kiki.hs')
-rw-r--r--kiki.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/kiki.hs b/kiki.hs
index e10c2a8..6b197c0 100644
--- a/kiki.hs
+++ b/kiki.hs
@@ -1465,12 +1465,14 @@ kiki "init" args = do
1465 ( encode $ Message [mk { is_subkey = False }] ) 1465 ( encode $ Message [mk { is_subkey = False }] )
1466 -} 1466 -}
1467 master <- (\k -> k { is_subkey = False }) <$> generateKey (GenRSA $ 4096 `div` 8 ) 1467 master <- (\k -> k { is_subkey = False }) <$> generateKey (GenRSA $ 4096 `div` 8 )
1468 mkdirFor secring
1468 writeInputFileL (InputFileContext secring pubring) 1469 writeInputFileL (InputFileContext secring pubring)
1469 HomeSec 1470 HomeSec
1470 $ encode $ Message [master { is_subkey = False}] 1471 $ encode $ Message [master { is_subkey = False}]
1471 1472
1472 gotpub <- doesFileExist pubring 1473 gotpub <- doesFileExist pubring
1473 when (not gotpub) $ do 1474 when (not gotpub) $ do
1475 mkdirFor pubring
1474 writeInputFileL (InputFileContext secring pubring) 1476 writeInputFileL (InputFileContext secring pubring)
1475 HomePub 1477 HomePub
1476 ( encode $ Message [] ) 1478 ( encode $ Message [] )