propellor spin
This commit is contained in:
parent
4dac4eea22
commit
2e128c8fe2
|
@ -75,8 +75,10 @@ cloned owner url dir mbranch = check originurl (Property desc checkout)
|
||||||
, return True
|
, return True
|
||||||
)
|
)
|
||||||
checkout = do
|
checkout = do
|
||||||
liftIO $ whenM (doesDirectoryExist dir) $
|
liftIO $ do
|
||||||
|
whenM (doesDirectoryExist dir) $
|
||||||
removeDirectoryRecursive dir
|
removeDirectoryRecursive dir
|
||||||
|
createDirectoryIfMissing True (takeDirectory dir)
|
||||||
ensureProperty $ userScriptProperty owner $ catMaybes
|
ensureProperty $ userScriptProperty owner $ catMaybes
|
||||||
[ Just $ "git clone " ++ shellEscape url ++ " " ++ shellEscape dir
|
[ Just $ "git clone " ++ shellEscape url ++ " " ++ shellEscape dir
|
||||||
, Just $ "cd " ++ shellEscape dir
|
, Just $ "cd " ++ shellEscape dir
|
||||||
|
|
|
@ -53,11 +53,12 @@ gitServer hosts = propertyList "git.kitenet.net setup"
|
||||||
, "$feature{'snapshot'}{'default'} = [];"
|
, "$feature{'snapshot'}{'default'} = [];"
|
||||||
]
|
]
|
||||||
`describe` "gitweb configured"
|
`describe` "gitweb configured"
|
||||||
|
-- I keep the website used for gitweb checked into git..
|
||||||
|
, Git.cloned "joey" "/srv/git/joey/git.kitenet.net.git" "/srv/web/git.kitenet.net" Nothing
|
||||||
, website "git.kitenet.net"
|
, website "git.kitenet.net"
|
||||||
, website "git.joeyh.name"
|
, website "git.joeyh.name"
|
||||||
-- ssh keys for branchable and github repo hooks
|
-- ssh keys for branchable and github repo hooks
|
||||||
-- TODO: upgrade to newer git-annex-shell for notification
|
-- TODO: upgrade to newer git-annex-shell for notification
|
||||||
-- gitweb
|
|
||||||
]
|
]
|
||||||
where
|
where
|
||||||
website hn = toProp $ Apache.siteEnabled hn (gitapacheconf hn)
|
website hn = toProp $ Apache.siteEnabled hn (gitapacheconf hn)
|
||||||
|
|
Loading…
Reference in New Issue