diff -up e-smith-manager-2.2.0/root/etc/e-smith/templates/etc/e-smith/web/common/head.tmpl/30FrameSetup01.display-admin-only-messages-only-for-server-manager e-smith-manager-2.2.0/root/etc/e-smith/templates/etc/e-smith/web/common/head.tmpl/30FrameSetup01
--- e-smith-manager-2.2.0/root/etc/e-smith/templates/etc/e-smith/web/common/head.tmpl/30FrameSetup01.display-admin-only-messages-only-for-server-manager 2010-01-31 12:31:51.000000000 +0100
+++ e-smith-manager-2.2.0/root/etc/e-smith/templates/etc/e-smith/web/common/head.tmpl/30FrameSetup01 2010-01-31 12:33:42.000000000 +0100
@@ -25,16 +25,21 @@ EOF
EOF
\}
- $DB = esmith::ConfigDB->open();
- $OUT .= qq(
- Warning: you have not yet changed the default system password.
)
- unless ($DB->get('PasswordSet')->value eq "yes");
-
- $OUT .= qq(
- Warning: a reconfigure and reboot is required before proceeding! Failure to do so now
- may leave your system in an unknown state!
)
- if ($DB->get('bootstrap-console') and $DB->get('bootstrap-console')->prop('Run') eq 'yes') ||
- ($DB->get('UnsavedChanges') and $DB->get('UnsavedChanges')->value eq 'yes');
+ if( $ENV\{REQUEST_URI\} =~ m/(server-manager)/) \{
+
+ $DB = esmith::ConfigDB->open();
+ $OUT .= qq(
+ Warning: you have not yet changed the default system password.
)
+ unless ($DB->get('PasswordSet')->value eq "yes");
+
+ $OUT .= qq(
+ Warning: a reconfigure and reboot is required before proceeding! Failure to do so now
+ may leave your system in an unknown state!
)
+ if ($DB->get('bootstrap-console') and $DB->get('bootstrap-console')->prop('Run') eq 'yes') ||
+ ($DB->get('UnsavedChanges') and $DB->get('UnsavedChanges')->value eq 'yes');
+
+ $OUT;
+
+ \}
- $OUT;
\}