propellor spin
This commit is contained in:
parent
f9d6227d9d
commit
19627d9ec9
|
@ -142,17 +142,16 @@ spin host = do
|
||||||
user = "root@"++host
|
user = "root@"++host
|
||||||
|
|
||||||
bootstrapcmd = shellWrap $ intercalate " && "
|
bootstrapcmd = shellWrap $ intercalate " && "
|
||||||
[ intercalate " ; "
|
[ "if [ ! -d " ++ localdir ++ " ]"
|
||||||
[ "if [ ! -d " ++ localdir ++ " ]"
|
, "then " ++ intercalate " && "
|
||||||
, "then " ++ intercalate " && "
|
[ "apt-get -y install git"
|
||||||
[ "apt-get -y install git"
|
, "echo " ++ toMarked statusMarker (show NeedGitClone)
|
||||||
, "echo " ++ toMarked statusMarker (show NeedGitClone)
|
]
|
||||||
]
|
, "else " ++ intercalate " && "
|
||||||
, "fi"
|
[ "cd " ++ localdir
|
||||||
|
, "if [ ! -x ./propellor ]; then make build; fi"
|
||||||
|
, "./propellor --boot " ++ host
|
||||||
]
|
]
|
||||||
, "cd " ++ localdir
|
|
||||||
, "make build"
|
|
||||||
, "./propellor --boot " ++ host
|
|
||||||
]
|
]
|
||||||
|
|
||||||
getstatus :: Handle -> IO BootStrapStatus
|
getstatus :: Handle -> IO BootStrapStatus
|
||||||
|
|
Loading…
Reference in New Issue