1 |
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 |
2 |
--- 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 |
3 |
+++ 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 |
4 |
@@ -25,16 +25,21 @@ EOF |
5 |
EOF |
6 |
\} |
7 |
|
8 |
- $DB = esmith::ConfigDB->open(); |
9 |
- $OUT .= qq(<div class="sme-error"><h5> |
10 |
- Warning: you have not yet changed the default system password.</h5></div>) |
11 |
- unless ($DB->get('PasswordSet')->value eq "yes"); |
12 |
- |
13 |
- $OUT .= qq(<div class="sme-error"><h5> |
14 |
- Warning: a reconfigure and reboot is required before proceeding! Failure to do so now |
15 |
- may leave your system in an unknown state!</h5></div>) |
16 |
- if ($DB->get('bootstrap-console') and $DB->get('bootstrap-console')->prop('Run') eq 'yes') || |
17 |
- ($DB->get('UnsavedChanges') and $DB->get('UnsavedChanges')->value eq 'yes'); |
18 |
+ if( $ENV\{REQUEST_URI\} =~ m/(server-manager)/) \{ |
19 |
+ |
20 |
+ $DB = esmith::ConfigDB->open(); |
21 |
+ $OUT .= qq(<div class="sme-error"><h5> |
22 |
+ Warning: you have not yet changed the default system password.</h5></div>) |
23 |
+ unless ($DB->get('PasswordSet')->value eq "yes"); |
24 |
+ |
25 |
+ $OUT .= qq(<div class="sme-error"><h5> |
26 |
+ Warning: a reconfigure and reboot is required before proceeding! Failure to do so now |
27 |
+ may leave your system in an unknown state!</h5></div>) |
28 |
+ if ($DB->get('bootstrap-console') and $DB->get('bootstrap-console')->prop('Run') eq 'yes') || |
29 |
+ ($DB->get('UnsavedChanges') and $DB->get('UnsavedChanges')->value eq 'yes'); |
30 |
+ |
31 |
+ $OUT; |
32 |
+ |
33 |
+ \} |
34 |
|
35 |
- $OUT; |
36 |
\} |