diff options
author | Joey Hess <joey@kitenet.net> | 2013-11-13 12:54:18 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-11-13 12:54:18 -0400 |
commit | 5f10d428c36e3e9b189a6549c6b7a4e8f3b30a99 (patch) | |
tree | 42e44ef7fd8ae20adab3868866d827633da6f477 /Assistant.hs | |
parent | d2c3ab3e918892d5f360e162b3bdba7daee8beb6 (diff) |
ensure .git/annex exists before opening log file when starting assistant
Diffstat (limited to 'Assistant.hs')
-rw-r--r-- | Assistant.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Assistant.hs b/Assistant.hs index e7a78eec1..3f4c4fabd 100644 --- a/Assistant.hs +++ b/Assistant.hs @@ -50,6 +50,7 @@ import qualified Utility.Daemon import Utility.LogFile import Utility.ThreadScheduler import Utility.HumanTime +import Annex.Perms import qualified Build.SysConfig as SysConfig import System.Log.Logger @@ -69,6 +70,7 @@ startDaemon assistant foreground startdelay listenhost startbrowser = do pidfile <- fromRepo gitAnnexPidFile logfile <- fromRepo gitAnnexLogFile #ifndef mingw32_HOST_OS + createAnnexDirectory (parentDir logfile) logfd <- liftIO $ openLog logfile if foreground then do |