|
348 |
}); |
348 |
}); |
349 |
this._tabContainer.addChild(overviewPage); |
349 |
this._tabContainer.addChild(overviewPage); |
350 |
|
350 |
|
351 |
// check validity of SSL certificates |
351 |
// get needet UCR variables |
352 |
umc.tools.umcpCommand( 'get/ucr', [ 'ssl/validity/days', 'ssl/validity/warning' ] ).then( dojo.hitch( this, function( data ) { |
352 |
umc.tools.umcpCommand( 'get/ucr', [ 'ssl/validity/days', 'ssl/validity/warning', 'update/available', 'update/reboot/required' ] ).then( dojo.hitch( this, function( data ) { |
|
|
353 |
// check validity of SSL certificates |
353 |
var days = parseInt( data.result[ 'ssl/validity/days' ], 10 ); |
354 |
var days = parseInt( data.result[ 'ssl/validity/days' ], 10 ); |
354 |
var warning = parseInt( data.result[ 'ssl/validity/warning' ], 10 ); |
355 |
var warning = parseInt( data.result[ 'ssl/validity/warning' ], 10 ); |
355 |
if ( days <= warning ) { |
356 |
if ( days <= warning ) { |
356 |
overviewPage.addNote( this._( 'The SSL certificate will expire in %d days and should be renewed!', days ) ); |
357 |
overviewPage.addNote( this._( 'The SSL certificate will expire in %d days and should be renewed!', days ) ); |
357 |
} |
358 |
} |
|
|
359 |
|
360 |
// check if updates are available |
361 |
if ( umc.tools.isTrue(data.result['update/available']) ) { |
362 |
overviewPage.addNote( this._( 'An update for UCS is available. Please visit <a href="/univention-management-console/?flavor=updater">Online Update Module</a> of Univention Management Console to install updates.' ) ); |
363 |
} |
364 |
|
365 |
// check if system reboot is required |
366 |
if ( umc.tools.isTrue(data.result['update/reboot/required']) ) { |
367 |
overviewPage.addNote( this._( 'This system has been updated recently. A reboot is required to finish update.' ) ); |
368 |
} |
358 |
})); |
369 |
})); |
359 |
|
370 |
|
360 |
// add a CategoryPane for each category |
371 |
// add a CategoryPane for each category |