7 | | 1. Turn off the QCG-Notification service (e.g. /sbin/servide qcg-ntfd stop). |
8 | | 2. Update the service in a typical fashion (e.g. rpm -U qcg-ntf-2.6.2-2.x86_64.rpm or yum update qcg-ntf). |
9 | | 3. Update the QCG-Notifcation database. For installation from RPMs you can use the script installed in /opt/plgrid/qcg/share/qcg-ntf/qcg-ntf-update.sh. Alternatively you can change the database manually with the SQL script: /opt/plgrid/qcg/share/qcg-ntf/qcg-ntf-psql.sql. |
| 7 | 1. Login as root. |
| 8 | 2. Turn off the QCG-Notification service (e.g. /sbin/servide qcg-ntfd stop). |
| 9 | 3. Update the service in a typical fashion (e.g. rpm -U qcg-ntf-2.6.2-2.x86_64.rpm or yum update qcg-ntf). |
| 10 | 4. Update the QCG-Notifcation database. For installation from RPMs you can use the script installed in /opt/plgrid/qcg/share/qcg-ntf/qcg-ntf-update.sh. Alternatively you can change the database manually with the SQL script: /opt/plgrid/qcg/share/qcg-ntf/qcg-ntf-psql.sql. |
| 11 | 5. Re-run the QCG-Notification service (e.g. /sbin/service qcg-ntfd start). |
| 12 | |
| 13 | === Example === |
| 14 | {{{ |
| 15 | #!div style="font-size: 90%" |
| 16 | {{{#!sh |
| 17 | # sudo bash |
| 18 | $ /sbin/service qcg-ntfd stop |
| 19 | $ yum update qcg-ntf |
| 20 | $ /opt/plgrid/qcg/share/qcg-ntf/tools/qcg-ntf-update.sh |
| 21 | Welcome to qcg-ntf update script! |
| 22 | |
| 23 | This script will guide you through process of updating QCG Notification service. |
| 24 | You have to answer few questions regarding parameters of your database. |
| 25 | If you are not sure check the values in QCG-Notification configuration file. |
| 26 | |
| 27 | Use local PostgreSQL server? (y/n) [y]: |
| 28 | Database [qcg-ntf]: |
| 29 | User [qcg-ntf]: |
| 30 | Password [qcg-ntf]: |
| 31 | |
| 32 | Checking for system user qcg-ntf...OK |
| 33 | |
| 34 | Performing installation |
| 35 | |
| 36 | Schema update |
| 37 | * Creating database schema...OK |
| 38 | |
| 39 | $ /sbin/service qcg-ntfd start |
| 40 | }}} |
| 41 | }}} |