summaryrefslogtreecommitdiffstats
path: root/etc/inc/upgrade_config.inc
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into bootstrapRenato Botelho2015-08-261-8/+59
|\ | | | | | | | | | | This is a merge of pfSense/master at this point: c0d5c1435ee8f90d1ee62f5fb4a4fac48aacda77
| * add a check to avoid foreach on non-arrayChris Buechler2015-07-271-0/+4
| |
| * Upgrade config to 11.9. Changes IPsec peer ID for EAP types to "any", to ↵Chris Buechler2015-07-251-0/+13
| | | | | | | | | | | | | | retain previous behavior. Conflicts: etc/inc/upgrade_config.inc
| * change iketype auto to ikev2 on upgrade. Ticket #4873Chris Buechler2015-07-231-0/+5
| |
| * Merge pull request #1770 from phil-davis/patch-1Chris Buechler2015-07-211-0/+10
| |\
| | * Unset old CA and Cert in left system configPhil Davis2015-07-211-0/+8
| | | | | | | | | Unset any old CA and Cert in the system section that might still be there from when upgrade_066_to_067 did not unset them. That will tidy up old configs that had the conversion done originally but these old sections were left behind.
| | * Unset old CA and Cert in system configPhil Davis2015-07-211-0/+2
| | | | | | | | | | | | | | | This looked odd. Why would we leave behind the old "ca" and "cert" section in $config["system"]? I guess it would do no harm, but seems confusing for the future to have some unused entries like this remaining in the config. Should a piece of code be put into the latest upgrade function to clean out these in any current config?
| * | Merge pull request #1771 from phil-davis/patch-2Renato Botelho2015-07-211-3/+4
| |\ \
| | * | Allocate dnpipe and dnqueue numbers even if no filter rulesPhil Davis2015-07-211-3/+4
| | |/ | | | | | | It would be quite unusual to have no filter rules array, but if that is indeed the case then the first part of this code that sets dnpipe and dnqueue numbers should execute anyway.
| * | Captive Portal zoneid upgrade fix var name typoPhil Davis2015-07-211-1/+1
| |/ | | | | With the typo, this empty() test would always have been true. So maybe on upgrade some existing captive portal zoneid values have been getting overwritten by this even number counter? Or?
| * Fix #4794:Renato Botelho2015-07-171-1/+22
| | | | | | | | | | - Add a upgrade code to fix asn1dn string format to match strongSwan needs - Bump config version to 11.8
| * Code spacingPhil Davis2015-06-151-2/+2
| | | | | | | | | | | | | | and other random stuff I noticed. I think this finishes messing with code style. The codebase should match the developer style guide closely enough that 99.9% of changes will not feel the need to also massage the formatting.
| * Code style bits and pieces from etcPhil Davis2015-05-311-11/+11
| |
| * Fix up Ticket #4504 implementation. Match config style with other areas. Use ↵Chris Buechler2015-04-041-3/+0
| | | | | | | | a config setting to disable, rather than enable, this functionality since it's enabled by default so the tag isn't necessary in the default config. Remove now unnecessary config upgrade code.
* | Merge branch 'master' of github.com:pfsense/pfsenseSjon Hortensius2015-04-041-0/+4
|\ \ | |/
| * Ticket #4504 actually make it correctErmal LUÇI2015-04-031-1/+3
| |
| * Upgraded configurations should keep the default configuration of bypassing ↵Ermal LUÇI2015-04-031-0/+2
| | | | | | | | lan from ipsec. Ticket #4504
* | Merge remote-tracking branch 'upstream/master' into origin/masterSjon Hortensius2015-03-221-404/+619
|\ \ | |/
| * dns_split was a comma separated list and moved to use space as separator, ↵Renato Botelho2015-03-061-0/+13
| | | | | | | | provide upgrade code to make sure old configs are converted. Since there was a config upgrade version 11.7 only on master, I pushed it to 11.8 and used dns_split one as 11.7 to be able to backport it to RELENG_2_2. Ticket #4418
| * Code style etc inc uPhil Davis2015-03-031-403/+589
| |
| * Ancient bug on upgrade_014_to_015Phil Davis2015-03-011-1/+1
| | | | | | | | | | | | | | | | | | | | This code looked silly the way it was, with the construct: $var = $var; unset($var); Seems it was accidentally changed to this way many years ago by https://github.com/pfsense/pfsense/commit/588a183b0e58f09932ffef35cc0003cca2313aba IMHO we want to do the conversion to $config['system']['gateway'] here so that later config conversion will then process it as expected. Note that in a current (2.2) config there is not $config['system']['gateway'] but that is switched over later in upgrade_021_to_022 - which switches back to $config['interfaces']['wan']['gateway'] and then later config conversions do their thing with that. I guess this will only effect people who upgrade from some really old config (or monowall?)
| * Random text typosPhil Davis2015-02-111-3/+3
| | | | | | | | that I noticed.
| * remove empty valuesxbipin2015-02-051-10/+9
| | | | | | | | remove empty values
| * upgrade configxbipin2015-02-051-0/+17
| | | | | | | | upgrade config code so old entries not lost during upgrade
* | Globally correct a few typosSjon Hortensius2015-03-071-1/+0
|/ | | | | | | * $x; > $x = null; * removed duplicated cases * fixed useless statement: (int)$x = $y * removed poetic: if (!$x && $x) $x = $x
* To avoid issues with clashing SAIDs go back to specifying the reqid in ↵Ermal LUÇI2015-01-131-0/+13
| | | | | | | | | strongswan config. To be able to manage this first upgrade the config to assign each phase2 an reqid Second use that during config generation Ticket #4208
* Fix #4090:Renato Botelho2015-01-051-0/+7
| | | | | | | | | - Unbound advanced options may contain double quotes and it breaks the syntax when a backup is restored because newlines are trimmed. Save it in base64 format is a safe way to prevent it - Bump config version to 11.5 - Provide upgrade code to encode current config or the one that came from unbound package on 2.1.5
* It's supposed to remove windows EOL here, not ;Renato Botelho2015-01-051-1/+1
|
* Fix lineup of copyright linesPhil Davis2015-01-011-6/+7
| | | | | and module names and other bits of formatting and typos in header comment sections.
* 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
OpenPOWER on IntegriCloud