Commit 665b3c2d authored by Franco Fichtner's avatar Franco Fichtner

configuration: layout and other things

(cherry picked from commit 61ec0fcd)
(cherry picked from commit f42e229b)
(cherry picked from commit 3161dece)
(cherry picked from commit a35211fd)
parent c9065278
...@@ -227,6 +227,7 @@ ...@@ -227,6 +227,7 @@
<interval>monthly</interval> <interval>monthly</interval>
</bogons> </bogons>
<kill_states/> <kill_states/>
<backupcount>60</backupcount>
</system> </system>
<interfaces> <interfaces>
<wan> <wan>
......
...@@ -288,7 +288,8 @@ function cleanup_backups() ...@@ -288,7 +288,8 @@ function cleanup_backups()
if (isset($config['system']['backupcount']) && is_numeric($config['system']['backupcount']) && ($config['system']['backupcount'] >= 0)) { if (isset($config['system']['backupcount']) && is_numeric($config['system']['backupcount']) && ($config['system']['backupcount'] >= 0)) {
$revisions = intval($config['system']['backupcount']); $revisions = intval($config['system']['backupcount']);
} else { } else {
$revisions = 30; /* XXX this value used to be left out of the config */
$revisions = 60;
} }
$cnf = OPNsense\Core\Config::getInstance(); $cnf = OPNsense\Core\Config::getInstance();
......
...@@ -3432,4 +3432,8 @@ function upgrade_111_to_112() ...@@ -3432,4 +3432,8 @@ function upgrade_111_to_112()
} }
} }
} }
if (!isset($config['system']['backupcount'])) {
$config['system']['backupcount'] = 60;
}
} }
This diff is collapsed.
...@@ -351,11 +351,8 @@ $(document).ready(function() { ...@@ -351,11 +351,8 @@ $(document).ready(function() {
</tr> </tr>
<tr> <tr>
<td colspan="2"> <td colspan="2">
<p> <?=gettext("Graphs will not be allowed to be recreated within a 1 minute interval, please " .
<strong><span class="text-danger"><?=gettext("Note:");?></span></strong><br /> "take this into account after changing the style.");?>
<?=gettext("Graphs will not be allowed to be recreated within a 1 minute interval, please " .
"take this into account after changing the style.");?>
</p>
</td> </td>
</tr> </tr>
</table> </table>
...@@ -565,10 +562,10 @@ $(document).ready(function() { ...@@ -565,10 +562,10 @@ $(document).ready(function() {
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="2"><strong><span class="text-danger"><?=gettext("Note:")?></span></strong><br /> <td colspan="2">
<?=gettext("Syslog sends UDP datagrams to port 514 on the specified " . <?=gettext("Syslog sends UDP datagrams to port 514 on the specified " .
"remote syslog server, unless another port is specified. Be sure to set syslogd on the " . "remote syslog server, unless another port is specified. Be sure to set syslogd on the " .
"remote server to accept remote syslog messages.");?> "remote server to accept remote syslog messages.");?>
</td> </td>
</tr> </tr>
</table> </table>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment