Use new module
authorJamie Cameron <jcameron@webmin.com>
Sun, 1 Mar 2009 23:57:37 +0000 (23:57 +0000)
committerJamie Cameron <jcameron@webmin.com>
Sun, 1 Mar 2009 23:57:37 +0000 (23:57 +0000)
install-module.pl
run-postinstalls.pl
run-uninstalls.pl

index f45abb5..7ae2e51 100755 (executable)
@@ -41,7 +41,7 @@ $ENV{'WEBMIN_VAR'} = $var;
 $no_acl_check++;
 chdir($root);
 $0 = "$root/install-module.pl";
-do './web-lib.pl';
+eval "use WebminCore;";
 &init_config();
 
 # Install it, using the standard function
index e831fb7..bf651e1 100755 (executable)
@@ -3,7 +3,7 @@
 # Run all the postinstall.pl scripts in module and theme directories
 
 $no_acl_check++;
-do './web-lib.pl';
+use WebminCore;
 &init_config();
 &foreign_require("webmin", "webmin-lib.pl");
 @themes = &webmin::list_themes();
index 7165c18..92853ab 100755 (executable)
@@ -3,7 +3,7 @@
 # Run all the uninstall.pl scripts in module directories
 
 $no_acl_check++;
-do './web-lib.pl';
+use WebminCore;
 &init_config();
 
 if (@ARGV > 0) {