Skip to content

Commit

Permalink
command: Create deploy dir if missing
Browse files Browse the repository at this point in the history
  • Loading branch information
3noch committed Mar 12, 2020
1 parent 3047dcb commit 1742e0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/command/src/Obelisk/Command/Deploy.hs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ deployInit thunkPtr deployDir sshKeyPath hostnames route adminEmail enableHttps
localKey <- liftIO (doesFileExist sshKeyPath) >>= \case
False -> failWith $ T.pack $ "ob deploy init: file does not exist: " <> sshKeyPath
True -> pure $ deployDir </> "ssh_key"
createDirectoryIfMissing True deployDir
callProcessAndLogOutput (Notice, Error) $
proc cp [sshKeyPath, localKey]
liftIO $ setFileMode localKey $ ownerReadMode .|. ownerWriteMode
Expand Down

0 comments on commit 1742e0e

Please sign in to comment.