mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Allow postinstall scripts to know when webmin is being upgraded
This commit is contained in:
1
setup.pl
1
setup.pl
@@ -908,6 +908,7 @@ else {
|
||||
if (!$ENV{'nopostinstall'}) {
|
||||
print "Running postinstall scripts ..\n";
|
||||
chdir($wadir);
|
||||
$ENV{'WEBMIN_UPGRADING'} = $upgrading;
|
||||
system("$perl "."e_path("$wadir/run-postinstalls.pl"));
|
||||
print ".. done\n";
|
||||
print "\n";
|
||||
|
||||
2
setup.sh
2
setup.sh
@@ -983,7 +983,7 @@ fi
|
||||
|
||||
if [ "$nopostinstall" = "" ]; then
|
||||
echo "Running postinstall scripts .."
|
||||
(cd "$wadir" ; WEBMIN_CONFIG=$config_dir WEBMIN_VAR=$var_dir "$wadir/run-postinstalls.pl")
|
||||
(cd "$wadir" ; WEBMIN_CONFIG=$config_dir WEBMIN_VAR=$var_dir WEBMIN_UPGRADING="$upgrading" "$wadir/run-postinstalls.pl")
|
||||
echo ".. done"
|
||||
echo ""
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user