fix setting the group of the first repo created

This commit is contained in:
Joey Hess 2012-10-10 16:32:15 -04:00
parent 4e2e08b45a
commit 5d85c1497c

View file

@ -264,10 +264,11 @@ driveList = mapM (gen . mnt_dir) =<< filter sane <$> getMounts
startFullAssistant :: FilePath -> Handler ()
startFullAssistant path = do
webapp <- getYesod
liftIO $ makeRepo path False
u <- liftIO $ initRepo path Nothing
runAnnex () $ setStandardGroup u ClientGroup
url <- liftIO $ do
makeRepo path False
u <- initRepo path Nothing
inDir path $
setStandardGroup u ClientGroup
addAutoStart path
changeWorkingDirectory path
fromJust $ postFirstRun webapp