summaryrefslogtreecommitdiff
path: root/Propellor/CmdLine.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Propellor/CmdLine.hs')
-rw-r--r--Propellor/CmdLine.hs7
1 files changed, 3 insertions, 4 deletions
diff --git a/Propellor/CmdLine.hs b/Propellor/CmdLine.hs
index 6b33ae0d..3a0d9131 100644
--- a/Propellor/CmdLine.hs
+++ b/Propellor/CmdLine.hs
@@ -132,12 +132,11 @@ boot props = do
putStrLn $ toMarked statusMarker $ show $ if havering then HaveKeyRing else NeedKeyRing
hFlush stdout
reply <- getContents
+
makePrivDataDir
writeFileProtected privDataLocal $ fromMarked privDataMarker reply
- let keyringb64 = fromMarked keyringMarker reply
- case fromB64Maybe keyringb64 of
- Nothing -> noop
- Just s -> writeFileProtected keyring s
+ maybe noop (writeFileProtected keyring) $ fromB64Maybe $
+ fromMarked keyringMarker reply
ensureProperties props
addKey :: String -> IO ()