Enable background status collection for new installs
authorJamie Cameron <jcameron@webmin.com>
Wed, 2 Jun 2010 21:02:18 +0000 (14:02 -0700)
committerJamie Cameron <jcameron@webmin.com>
Wed, 2 Jun 2010 21:02:18 +0000 (14:02 -0700)
setup.sh

index 0b6b434..3ab45a1 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -808,6 +808,14 @@ if [ "$nopostinstall" = "" ]; then
        echo ""
 fi
 
+# Enable background collection
+if [ "$upgrading" != 1 ]; then
+       echo "Enabling background status collection .."
+       $config_dir/system-status/enable-collection.pl 5
+       echo "..done"
+       echo ""
+fi
+
 # Run package-defined post-install script
 if [ -r "$srcdir/setup-post.sh" ]; then
        . "$srcdir/setup-post.sh"