source: branches/1.0/debian/jobmonarch-jobarchived.postinst

Last change on this file was 896, checked in by ramonb, 8 years ago

debian/control:

  • depend on Ganglia 3.3.8

debian/*.postinst:

  • (de)configure is actually called on upgrade
  • changed upgrade logic to check if $2 is empty

debian/jobmonarch-webfrontend.prerm:

  • only print warning upon removal

debian/jobmonarch-jobmond.prerm, debian/jobmonarch-jobarchived.prerm:

  • only disable runlevel symlinks on removal
  • Property svn:executable set to *
File size: 1.1 KB
Line 
1#!/bin/sh
2
3PATH=/bin:/sbin:/usr/bin:/usr/sbin
4
5set -e
6
7if [ -z "$2" ]
8then
9    # Only on install (not during upgrade)
10
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 ""
31else
32    # This is a upgrade
33    :
34fi
35
36exit 0
37
38
Note: See TracBrowser for help on using the repository browser.