2016-08-31 11:45:15 +00:00
|
|
|
<md-content layout="row" ng-if="!load && submenuNavItem == 'update'" layout-align="space-around start" layout-sm="column" layout-xs="column" ng-controller="updateRulesetController">
|
2016-07-26 12:27:32 +00:00
|
|
|
|
|
|
|
<md-content layout="column" layout-align="space-around center">
|
|
|
|
<h2>Update</h2>
|
|
|
|
<md-input-container layout="column" layout-align="space-around center">
|
2016-08-31 13:40:04 +00:00
|
|
|
<p>1. Do you want to force it?</p>
|
2016-07-26 12:27:32 +00:00
|
|
|
<md-switch ng-model="$parent.updateForce" aria-label="Force update?">
|
|
|
|
<span ng-show="$parent.updateForce">Overwrite all the rules (OSSEC manager is going to be restarted)</span>
|
|
|
|
<span ng-show="!$parent.updateForce">Update the outdated rules (Manager will be restarted only if enabled rules are updated)</span>
|
|
|
|
</md-switch>
|
|
|
|
</md-input-container>
|
2016-07-24 04:10:53 +00:00
|
|
|
|
2016-08-31 13:40:04 +00:00
|
|
|
<md-button type="submit" ng-click="updateRuleset($event);" class="md-primary md-raised">Update ruleset</md-button>
|
2016-07-26 12:27:32 +00:00
|
|
|
</md-content>
|
2016-07-25 15:07:11 +00:00
|
|
|
|
|
|
|
<md-divider></md-divider>
|
|
|
|
|
2016-07-26 12:27:32 +00:00
|
|
|
<md-content layout="column" layout-align="space-around center">
|
|
|
|
<h2>Backups</h2>
|
|
|
|
<md-select ng-model="$parent.selectedBackup" md-on-open="load_backups()" style="min-width: 150px;">
|
|
|
|
<md-option value="{{backup}}" ng-repeat="backup in backups">{{backup}}</md-option>
|
2016-08-31 13:40:04 +00:00
|
|
|
<md-option-empty ng-if="backups.length == 0">No backups where found</md-option-empty>
|
2016-07-25 15:07:11 +00:00
|
|
|
</md-select>
|
2016-08-31 13:40:04 +00:00
|
|
|
<md-button type="submit" class="md-primary md-raised" ng-click="restoreBackup($event);">Restore backup</md-button>
|
2016-07-25 15:07:11 +00:00
|
|
|
<p style="font-weight: lighter;">* When ruleset is updated, a new backup (the first in the list) will be created.</p>
|
2016-07-26 12:27:32 +00:00
|
|
|
</md-content>
|
|
|
|
|
2016-07-25 15:07:11 +00:00
|
|
|
</md-content>
|
|
|
|
</md-content>
|