File: postinst

package info (click to toggle)
jmon 0.3.1-6
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 132 kB
  • ctags: 81
  • sloc: ansic: 598; makefile: 93; sh: 80
file content (14 lines) | stat: -rw-r--r-- 310 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh -e

if [ "$1" = "configure" -a "$2" = "" ]
  then
    if [ ! -f /etc/jmonrc ]
      then
        echo -n "Enabling jMON to localhost in /etc/jmonrc ... "
        echo "localhost                         7777" > /etc/jmonrc
        chmod 644 /etc/jmonrc
        echo "done."
      fi
  fi

#DEBHELPER#