File: postinst

package info (click to toggle)
jmon 0.3-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 108 kB
  • ctags: 76
  • sloc: ansic: 569; sh: 77; makefile: 76
file content (12 lines) | stat: -rw-r--r-- 284 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/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#