Do nothing if usermin is missing
authorJamie Cameron <jcameron@webmin.com>
Wed, 19 Jan 2011 18:25:13 +0000 (10:25 -0800)
committerJamie Cameron <jcameron@webmin.com>
Wed, 19 Jan 2011 18:25:13 +0000 (10:25 -0800)
usermin/update.pl

index f5e5a0a..db18fa4 100755 (executable)
@@ -4,6 +4,10 @@
 
 $no_acl_check++;
 require './usermin-lib.pl';
+if (!-r "$config{'usermin_dir'}/miniserv.conf") {
+       # Usermin not installed
+       exit(0);
+       }
 
 # Get the update source
 if ($config{'upsource'}) {