From 40c91a0d45a875b8ef58c42a38fb29f4a608b425 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 21 Nov 2013 17:49:56 -0400 Subject: upgrade alerts The webapp will check twice a day, when the network is connected, to see if it can download a distributon upgrade file. If a newer version is found, display an upgrade alert. This will need the autobuilders to set UPGRADE_LOCATION to the url it can be downloaded from when building git-annex. Only builds with that set need automatic upgrade alerts. Currently, the upgrade page just requests the user manually download and upgrade it. But, all the info is provided to do automated upgrades in the future. Note that urls used will need to all be https. This commit was sponsored by Dirk Kraft. --- Assistant.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Assistant.hs') diff --git a/Assistant.hs b/Assistant.hs index 00746b785..fd8e18843 100644 --- a/Assistant.hs +++ b/Assistant.hs @@ -28,6 +28,7 @@ import Assistant.Threads.ProblemFixer import Assistant.Threads.MountWatcher #endif import Assistant.Threads.NetWatcher +import Assistant.Threads.Upgrader import Assistant.Threads.TransferScanner import Assistant.Threads.TransferPoller import Assistant.Threads.ConfigMonitor @@ -150,6 +151,7 @@ startDaemon assistant foreground startdelay cannotrun listenhost startbrowser = , assist $ mountWatcherThread urlrenderer #endif , assist $ netWatcherThread + , assist $ upgraderThread urlrenderer , assist $ netWatcherFallbackThread , assist $ transferScannerThread urlrenderer , assist $ cronnerThread urlrenderer -- cgit v1.2.3