mirror of
https://github.com/input-output-hk/foliage.git
synced 2024-12-02 07:54:45 +03:00
Update app/Foliage/HackageSecurity.hs
Co-authored-by: Andrea Bedini <andrea@andreabedini.com>
This commit is contained in:
parent
59e0d72cb9
commit
f40673352f
@ -40,18 +40,6 @@ createKeys base = do
|
|||||||
putStrLn " root keys:"
|
putStrLn " root keys:"
|
||||||
createDirectoryIfMissing True (base </> "root")
|
createDirectoryIfMissing True (base </> "root")
|
||||||
replicateM_ 3 $ createKey' KeyTypeEd25519 >>= writeKeyWithId (base </> "root")
|
replicateM_ 3 $ createKey' KeyTypeEd25519 >>= writeKeyWithId (base </> "root")
|
||||||
putStrLn " target keys:"
|
|
||||||
createDirectoryIfMissing True (base </> "target")
|
|
||||||
replicateM_ 3 $ createKey' KeyTypeEd25519 >>= writeKeyWithId (base </> "target")
|
|
||||||
putStrLn " timestamp keys:"
|
|
||||||
createDirectoryIfMissing True (base </> "timestamp")
|
|
||||||
replicateM_ 1 $ createKey' KeyTypeEd25519 >>= writeKeyWithId (base </> "timestamp")
|
|
||||||
putStrLn " snapshot keys:"
|
|
||||||
createDirectoryIfMissing True (base </> "snapshot")
|
|
||||||
replicateM_ 1 $ createKey' KeyTypeEd25519 >>= writeKeyWithId (base </> "snapshot")
|
|
||||||
putStrLn " mirrors keys:"
|
|
||||||
createDirectoryIfMissing True (base </> "mirrors")
|
|
||||||
replicateM_ 3 $ createKey' KeyTypeEd25519 >>= writeKeyWithId (base </> "mirrors")
|
|
||||||
|
|
||||||
writeKeyWithId :: FilePath -> Some Key -> IO ()
|
writeKeyWithId :: FilePath -> Some Key -> IO ()
|
||||||
writeKeyWithId base k = do
|
writeKeyWithId base k = do
|
||||||
|
Loading…
Reference in New Issue
Block a user