Ignore:
Timestamp:
05/16/13 17:24:07 (8 years ago)
Author:
olahaye
Message:

[debian packaging: jobmonarch-jobmond.postinst & jobmonarch-jobarchived.postinst] Add logic to prevent useless messages to appear during upgrade.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.0/debian/jobmonarch-jobarchived.postinst

    r846 r872  
    33PATH=/bin:/sbin:/usr/bin:/usr/sbin
    44
    5 if [ -x /etc/init.d/jobarchived ]
    6         then
     5set -e
    76
    8                 update-rc.d -f jobarchived defaults
    9 fi
     7case "$1" in
     8    configure)
     9        # Only on install (not during upgrade)
    1010
    11 echo ""
    12 echo "Additional manual changes are required to setup jobarchived:"
    13 echo ""
    14 echo "1) Edit /etc/jobarchived.conf to reflect your local settings and setup:"
    15 echo "   - ARCHIVE_DATASOURCES and ARCHIVE_PATH"
    16 echo ""
    17 echo "2) Create a 'jobarchive' database and create jobarchived's tables:"
    18 echo "   - createdb jobarchive"
    19 echo "   - psql -f /usr/share/jobarchived/job_dbase.sql jobarchive"
    20 echo ""
     11        if [ -x /etc/init.d/jobarchived ]
     12        then
     13            update-rc.d -f jobarchived defaults
     14        fi
     15
     16        echo ""
     17        echo "Additional manual changes are required to setup jobarchived:"
     18        echo ""
     19        echo "1) Edit /etc/jobarchived.conf to reflect your local settings and setup:"
     20        echo "   - ARCHIVE_DATASOURCES and ARCHIVE_PATH"
     21        echo ""
     22        echo "2) Create a 'jobarchive' database and create jobarchived's tables:"
     23        echo "   - createdb jobarchive"
     24        echo "   - psql -f /usr/share/jobarchived/job_dbase.sql jobarchive"
     25        echo "   - Update /var/lib/pgsql/data/pg_hba.conf by adding the following lines:"
     26        echo "     local   jobarchive      jobarchive                              trust"
     27        echo "     host    jobarchive      jobarchive      127.0.0.1/32            trust"
     28        echo "     host    jobarchive      jobarchive      ::1/128                 trust"
     29        echo "   - Restart the postgresql service"
     30        echo ""
     31
     32        ;;
     33    *)
     34        ;;
     35esac
     36
     37exit 0
     38
     39
Note: See TracChangeset for help on using the changeset viewer.