Don't show an error if enable-collection is missing
authorJamie Cameron <jcameron@webmin.com>
Thu, 10 Feb 2011 01:01:41 +0000 (17:01 -0800)
committerJamie Cameron <jcameron@webmin.com>
Thu, 10 Feb 2011 01:01:41 +0000 (17:01 -0800)
setup.sh

index ec84b16..3662975 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -811,7 +811,7 @@ if [ "$nopostinstall" = "" ]; then
 fi
 
 # Enable background collection
-if [ "$upgrading" != 1 ]; then
+if [ "$upgrading" != 1 -a -r $config_dir/system-status/enable-collection.pl ]; then
        echo "Enabling background status collection .."
        $config_dir/system-status/enable-collection.pl 5
        echo "..done"