diff --git a/run-postinstalls.pl b/run-postinstalls.pl index ccb82ac3d..0de57c0f2 100755 --- a/run-postinstalls.pl +++ b/run-postinstalls.pl @@ -1,8 +1,9 @@ #!/usr/local/bin/perl # run-postinstalls.pl # Run all the postinstall.pl scripts in module and theme directories -use lib '.'; +use lib '.'; +BEGIN { push(@INC, "."); }; $no_acl_check++; use WebminCore; &init_config(); diff --git a/run-uninstalls.pl b/run-uninstalls.pl index 3dd6e1126..3a91e74e8 100755 --- a/run-uninstalls.pl +++ b/run-uninstalls.pl @@ -2,6 +2,8 @@ # run-uninstalls.pl # Run all the uninstall.pl scripts in module directories +use lib '.'; +BEGIN { push(@INC, "."); }; $no_acl_check++; use WebminCore; &init_config();