/[smeserver]/rpms/e-smith-manager/sme8/e-smith-manager-2.2.0-display-admin-only-messages-only-for-server-manager.patch
ViewVC logotype

Contents of /rpms/e-smith-manager/sme8/e-smith-manager-2.2.0-display-admin-only-messages-only-for-server-manager.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Tue Feb 18 17:29:26 2014 UTC (10 years, 9 months ago) by wellsi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
* Tue Feb 18 2014 Ian Wells <esmith@wellsi.com> 2.2.0-11.sme
- Remove old images and roll new tarball [SME: 8213]

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 \}

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed