|
| 1 | +Upgrade |
| 2 | +======= |
| 3 | + |
| 4 | +If you upgrade from an older version, read the following instructions: |
| 5 | + |
| 6 | +From 0.4 to 0.5 |
| 7 | +--------------- |
| 8 | + |
| 9 | +bundled dependencies |
| 10 | +~~~~~~~~~~~~~~~~~~~~ |
| 11 | + |
| 12 | +The dependencies are now explicitly listed in the white-pages package, including the bundled ones. |
| 13 | + |
| 14 | +You can find bundled dependencies list: |
| 15 | + |
| 16 | +* in package description in debian package |
| 17 | +* in Provides field in rpm package |
| 18 | + |
| 19 | + |
| 20 | +configuration |
| 21 | +~~~~~~~~~~~~~ |
| 22 | + |
| 23 | +The configuration files are now in ``/etc/white-pages`` directory. |
| 24 | + |
| 25 | +During the upgrade process towards 0.5, the previous configuration files present in ``/usr/share/white-pages/conf`` (all .php files) are migrated to ``/etc/white-pages/``: |
| 26 | + |
| 27 | +* ``config.inc.php`` is migrated as a ``config.inc.php.bak`` file, |
| 28 | +* all other php file names are preserved. (including local conf, domain conf, and customized lang files) |
| 29 | + |
| 30 | +Please take in consideration that ``config.inc.php`` is now replaced systematically by the version in the RPM package. A .rpmsave backup will be done with the current version. The deb package will continue asking which file to use, it is advised to replace the current one with the version in the package. |
| 31 | + |
| 32 | +Avoid as much as possible editing the ``/etc/white-pages/config.inc.php`` file. Prefer modifying the ``/etc/white-pages/config.inc.local.php``. |
| 33 | + |
| 34 | +cache cleaning |
| 35 | +~~~~~~~~~~~~~~ |
| 36 | + |
| 37 | +Now the cache is being cleaned-up during white-pages upgrade / install. |
| 38 | + |
| 39 | +This is intended to avoid smarty problems due to white-pages templates upgrade, and possibly smarty upgrade itself. |
| 40 | + |
| 41 | + |
| 42 | +dependencies update |
| 43 | +~~~~~~~~~~~~~~~~~~~ |
| 44 | + |
| 45 | +Removed packaged dependencies: |
| 46 | + |
| 47 | +* old php module for apache2/httpd is no more required. The migration is done towards php-fpm. |
| 48 | +* apache2/httpd is not required any more. You can installed nginx or httpd by hand. |
| 49 | + |
| 50 | +Packaged dependencies: |
| 51 | + |
| 52 | +* smarty is now a required package. white-pages will work with either version 3 or 4. On debian, ``config.inc.php`` will be configured to use smarty4 if available |
| 53 | +* php-fpm >= 7.3 is now a required dependency, replacing old php module for apache/httpd. On debian, if apache2 is already installed, php-fpm configuration for apache2 will be done automatically |
| 54 | +* php-ldap has been kept as dependency |
| 55 | + |
| 56 | +Bundled dependencies: |
| 57 | + |
| 58 | +* js-bootstrap has been updated from version 3.2.0 to version v5.3.6 |
| 59 | +* js-jquery has been updated from version v1.10.2 to version v3.7.1 |
| 60 | +* js-datatables.net-datatables.net has been updated from version 1.10.16 to version 2.1.2 |
| 61 | +* js-datatables.net-datatables.net-bs5 has been updated from version 1.10.16 to version 2.0.8 |
| 62 | +* js-datatables.net-datatables.net-buttons has been updated from version 1.5.1 to version 3.1.0 |
| 63 | +* js-datatables.net-datatables.net-buttons-bs5 has been updated from version 1.5.1 to version 3.0.2 |
| 64 | +* fontawesome-fonts has been updated from version 4.7.0 to version 6.5.2 |
| 65 | +* php-ltb-project-ltb-common has been updated from version 0.1 to version 0.5.0 |
| 66 | +* php-phpmailer has been updated from version 6.8.0 to version v6.9.1 |
| 67 | + |
| 68 | +Note that hidden files (.gitignore,...) from bundled dependencies are now removed from packages. |
| 69 | + |
| 70 | + |
| 71 | +From 0.3 to 0.4 |
| 72 | +--------------- |
| 73 | + |
| 74 | +* Parameter `$ldap_user_regex` is now disbaled by default, means that the object type detection is done with configured LDAP filters. |
| 75 | + |
| 76 | +* The new map feature is disabled by default, as it requires to request OpenStreetMap API. Check the documentation before enabling it. |
| 77 | + |
| 78 | +From 0.2 to 0.3 |
| 79 | +--------------- |
| 80 | + |
| 81 | +There is a new parameter: `$ldap_user_regex`. |
| 82 | + |
| 83 | +If the default value does not fit your LDAP directory configuration, you must unset the default value, or adapt it. To unset it, put in your config.inc.local.php: |
| 84 | + |
| 85 | +```unset($ldap_user_regex);``` |
| 86 | + |
| 87 | +See also the ldap parameters page. |
0 commit comments