| | 1 | = Web Application Auto Upgrade Service = |
| | 2 | |
| | 3 | [NOTE: Not yet implemented, still under development.] |
| | 4 | |
| | 5 | May First/People Link provides a service to automatically provide security updates to your web applications. If you opt-in, your web application will be checked every night to see if any security updates are available and, if so, they will be installed. |
| | 6 | |
| | 7 | By using this service, you will greatly improve the protection of your web site against compromise while also incurring a very small chance that something might go wrong during the upgrade. |
| | 8 | |
| | 9 | This service is currently available for Drupal and WordPress only. The automatic upgrader only performs security/minor updates. |
| | 10 | |
| | 11 | [Note: when fully implemented, users can enable via the control panel.] |
| | 12 | You can enable this protection by creating a directory in your includes directory called: web-app-auto-upgrade and place one or more files in it. |
| | 13 | |
| | 14 | To indicate that you want to have your web application automatically upgraded, please create a file or files with the following names to indicate what you want upgraded. |
| | 15 | |
| | 16 | drupal-core |
| | 17 | drupal-modules |
| | 18 | |
| | 19 | wordpress-core |
| | 20 | wordpress-plugins |
| | 21 | |
| | 22 | If your web application is directly in your web directory, leave the file empty. If it is in a subdirectory, then put the full, absolute path to the root of your web directory in the file. |
| | 23 | |
| | 24 | For example, if you want to upgrade both drupal core and drupal modules for a web appication located directly in your web folder, create two files: one called drupal-core and one called drupal-modules in this directory. |
| | 25 | |
| | 26 | If you have two WordPress installations, one in the web directory and one in a subdirectory called "outreach" and you just want to auto upgrade the core WordPress code for both of them, create a single file called wordpress-core that contains the absolute path to your main web directory on one line and the absolute path to your outreach directory on the second line (note - when specifying additional directories, you have to specify the web directory if you want it included). |
| | 27 | |
| | 28 | == Technical Details == |
| | 29 | |
| | 30 | All upgrades are run as the user who owns the index.php file in the given directory. |
| | 31 | |
| | 32 | Drupal core upgrades are run via drush with the following command: |
| | 33 | |
| | 34 | {{{ |
| | 35 | drush -y pm-update drupal --security-only |
| | 36 | }}} |
| | 37 | |
| | 38 | Drupal module upgrade are run with the following command: |
| | 39 | |
| | 40 | {{{ |
| | 41 | drush -y pm-update --no-core --security-only |
| | 42 | }}} |
| | 43 | |
| | 44 | WordPress upgrades are handled via the following wp-cli commands: |
| | 45 | |
| | 46 | {{{ |
| | 47 | wp core update --minor |
| | 48 | }}} |
| | 49 | |
| | 50 | And WordPress plugin updates via: |
| | 51 | |
| | 52 | {{{ |
| | 53 | wp plugin update --all |
| | 54 | }}} |
| | 55 | |
| | 56 | NOTE: WordPress sites with a functioning cron job that are higher than version 3.7 already have auto-updates enabled so this step is not necessary, however, it doesn't hurt either. |
| | 57 | |