summaryrefslogtreecommitdiffstats
path: root/etc/inc/upgrade_config.inc
Commit message (Collapse)AuthorAgeFilesLines
* Add config upgrade code to make sure iketype is set, bump config version to ↵Renato Botelho2014-12-311-0/+12
| | | | 11.4. It fixes #4163
* Add config upgrade code to validate changes made on c2fe67eb and d269747b. ↵Renato Botelho2014-12-221-0/+16
| | | | It fixes #4134
* Replace ; by newlines when upgrading custom_options from unbound packages, ↵Renato Botelho2014-12-181-0/+3
| | | | it's related to ticket #4090
* Add a cron item to expire items from webConfiguratorlockout, also add config ↵Renato Botelho2014-12-171-0/+14
| | | | upgrade code. This fixes #4122
* Use newline to separate unbound custom options during config upgrade, it ↵Renato Botelho2014-12-151-4/+4
| | | | should fix #4104
* Unlink temporary xml file to avoid filling up space with junk filesErmal LUÇI2014-12-011-0/+4
|
* Do not run this during bootupErmal LUÇI2014-11-271-1/+2
|
* Do not run this code during upgrade and if ost is booting upErmal LUÇI2014-11-271-4/+8
|
* Rather than set the g['booting'] on globals provide a function to test for ↵Ermal LUÇI2014-11-261-6/+6
| | | | that doing the right checks
* Ticket 3967, revert upgrade code. Existing 2.2 installs might be impactedErmal2014-11-101-23/+1
|
* Fix two more instances of rrd.tgz renaming.jim-p2014-10-311-2/+2
|
* Remove also old unbound startup scriptRenato Botelho2014-09-251-0/+1
|
* Remove unbound files, menu and service during config upgrade, otherwise ↵Renato Botelho2014-09-241-0/+28
| | | | things can go really bad with functions redeclared un base and package unbound.inc and config corrupted when upgrading from 2.1.x with unbound installed to 2.2. PBI and package section are both removed later during package upgrade
* Make sure unbound user and group is also created during upgrade configRenato Botelho2014-09-231-0/+4
|
* Provide upgrade config code to migrate unbound settings from 2.1 package to ↵Renato Botelho2014-09-231-0/+92
| | | | 2.2 base. Bump config version to 11.1. It fixes #3880
* Use a uniqid() to track phase2 entries to avoid confustion and various ↵Ermal2014-08-011-0/+14
| | | | mistakes when modifying and editing them.
* Remove extra quote and fix syntaxRenato Botelho2014-07-061-1/+1
|
* Use a php function rather tan using exec. Suggested-by: gargaErmal2014-07-041-1/+1
|
* Remove all .xml file generated from upgrade since it makes /var fullErmal2014-07-041-0/+1
|
* Fix dscp values and provide a config upgrade to fix values stored in ↵Renato Botelho2014-06-241-0/+17
| | | | config.xml. This is a proper fix for #3688
* Change the option for webconfig login autocomplete from opt-in to opt-out, ↵Renato Botelho2014-06-181-0/+9
| | | | also bump config version and write a function to keep the current status on upgrades
* Properly handle this rename, and squelch errors if it fails.jim-p2014-05-211-1/+1
|
* Merge pull request #1032 from fichtner/contributions manually since it does ↵Ermal2014-04-281-0/+4
| | | | not apply cleanly
* Do not allow upgrade_101_to_102 to exit earlyPhil Davis2014-04-141-20/+18
| | | | This upgrade step does both Captive Portal stuff and OpenVPN stuff. So do not return early just because there is no Captive Portal config. Both Captive Portal and OpenVPN tests changed to be positive tests, to make sure that everything is checked/tested and there is no chance to return early.
* Provide upgrade code after changes done for Ticket #3441Ermal2014-03-141-0/+16
|
* s/unlink/unlink_if_exists/Renato Botelho2014-03-031-2/+2
|
* Merge 10 -> 10.1 and 10.1 -> 10.2 function upgrade since the recent changes ↵Ermal2014-02-171-5/+2
| | | | done on 2.1.1 for Ticket #3441
* Add escapeshellarg() calls on exec parameters. While I'm here, replace some ↵Renato Botelho2014-02-041-3/+3
| | | | exec() calls by php functions like symlink, copy, unlink, mkdir
* Upgrade all firewall rules to include a tracker field. Add a tracker field ↵Ermal2013-12-311-0/+26
| | | | even for nat for later usage while here.
* Fix syntaxRenato Botelho2013-12-241-2/+2
|
* Make sure to give the zone a name during the upgrade, or else it comes ↵jim-p2013-12-231-0/+1
| | | | through with a blank/null name.
* Convert ipaliases over carp to new world orderErmal2013-12-181-0/+27
|
* Since zoneid need to be less then 4096 provide some upgrade code to handle ↵Ermal2013-11-251-0/+17
| | | | that from existing configs
* Many fixes on privileges, ticket #3216:Renato Botelho2013-11-151-0/+34
| | | | | | | | | | | | | | | | - Rename some privileges: page-diag-system-activity => page-diagnostics-system-activity page-interfacess-groups => page-interfaces-groups page-interfacess-lagg => page-interfaces-lagg page-interfacess-qinq => page-interfaces-qinq - Write an upgrade function to replace above privileges by the new name - Remove unused privilege page-diagnostics-logs-wireless - Remove duplicated privileges - Fix limiter-info, pf-info and system-pftop that were using wrong name - Add privs for edit pages (interfaces_groups, interfaces_lagg, interfaces_qinq and services-igmpproxy) - Fix ID for acptiveportal allowedhostnames and editallowedhostnames - Fix some wrong matches
* Add hybrid and disabled outbound NAT, fixes #2416:Renato Botelho2013-11-131-0/+16
| | | | | | | | | | | | | - Add 2 new outbound NAT modes, hybrid and disabled, manual and advanced keep working the same way - Hybrid mode applies manual rules first, automatic after - Disabled do no create any outbound NAT rules - Remove ipsecpassthru config field and rename advancedoutbound to outbound - Save mode on $config['nat']['outbound']['mode'] to simplify the logic - Modify config.default to reflect changes - Add code to upgrade config, and change latest_version to 10.3 - Use html to align modes and remove some hacks to align using  
* Change OpenVPN Compression settings to cover the full range of allowed ↵jim-p2013-10-311-0/+21
| | | | settings on OpenVPN (unset, off, on, adaptive) rather than a simple off/on switch that either doesn't set the value or enables it with adaptive (OpenVPN's default).
* Set default value to radius_protocol during upgrade, it should fix #3226Renato Botelho2013-10-111-0/+2
|
* Needs parensjim-p2013-10-101-1/+1
|
* Add upgrade code to change the DHCP next-server value to nextserver since it ↵jim-p2013-10-101-5/+15
| | | | was renamed sometime in 2.1 but upgrade code didn't follow. Also shuffle the upgrade code blocks a bit since we need these on 2.1.x and nobody should be on 2.2 yet, so the impact should be minimal to renumber the one bit specific to 2.2.
* Remove newsyslog cron job on upgrade, if present.jim-p2013-10-091-0/+5
|
* Alix 2D6 crashes upgrade process withou out of diskspaceXon2013-09-161-1/+3
| | | | | Updating the the RRD graphs causes two copies of each RRD's XML file to be stored in /tmp. On Nanobsd, the default /tmp size is 40mb. It doesn't require very many RRD XML dumps before this is exhausted.
* Set action = pass for configured mac addresses on CP passtrumacRenato Botelho2013-09-141-0/+15
|
* Disable kill_states by default on upgrade, it fixes #3183Renato Botelho2013-09-061-0/+6
|
* Fix #3004:Renato Botelho2013-09-031-10/+5
| | | | | | . Create a function to replace strings on deep associative arrays . Use the recent created function array_replace_values_recursive to fix VIP interface names instead of touch config.xml directly
* Make sure RRD data is restored from backup before upgrading data and a new ↵Renato Botelho2013-09-031-0/+22
| | | | backup is done after. It should fix #2159
* Add independent logging choices to disable logging of bogon network rules ↵jim-p2013-07-091-0/+8
| | | | and private network rules. Add upgrade code to obey the existing behavior for users (if default block logging was disabled, so is bogon/private rule blocking). Also add a checkbox to disable the lighttpd log for people who don't want their system log spammed by lighty.
* Repect global conf_pathRenato Botelho2013-07-021-1/+1
|
* Don't flip the IPv6 allow setting just because people are upgrading. Just ↵Chris Buechler2013-06-171-3/+1
| | | | upgrading versions shouldn't change this behavior. As much as most of us would like people to start deploying IPv6, the vast majority aren't going to be immediately post-upgrade, and changing this can change the firewall policy behavior by allowing v6 that previously wasn't allowed. Upgrades should never change the firewall behavior like that. At the time it was done, everyone using the 2.1 code base was using it for IPv6, so of course it tripped up quite a few people.
* Fixes #2979Renato Botelho2013-05-291-0/+27
| | | | | | | . Change max value for traffic and packets graphs to 20GigE . Bump config version to 9.6 . Write a config upgrade function to tune current rrd files to the new max value
* Fix IPv6 Prefix ID default valueRenato Botelho2013-05-061-0/+12
| | | | | | | . Always initialize it to 0 when it's undefined . Remove unecessary initializations and checks . Bump config version to 9.5 . Write an upgrade config function to initialize old configs properly
OpenPOWER on IntegriCloud