openbsd-ports/security/nessus/pkg/INSTALL

41 lines
724 B
Plaintext
Raw Normal View History

2000-07-02 21:03:50 -04:00
#!/bin/sh
#
# $OpenBSD: INSTALL,v 1.2 2000/07/27 00:23:34 matt Exp $
#
# Post-installation script for nessus port
#
2000-07-02 21:03:50 -04:00
set -e
PATH=/bin
2000-07-02 21:03:50 -04:00
PREFIX=${PKG_PREFIX:-/usr/local}
umask 022
2000-07-02 21:03:50 -04:00
if [ x$2 = xPOST-INSTALL ]
then
# See if /etc/nessus exists; if it doesn't, create and populate.
if [ -d /etc/nessus ]
then
cat <<EOT
+---------------
| Example configuration files have been copied to
| $PREFIX/share/examples/nessus. Your existing /etc/nessus has
| been left untouched.
+---------------
EOT
else
mkdir -p /etc/nessus
cp -R $PREFIX/share/examples/nessus/nessus/* /etc/nessus/
fi
# Make /var/nessus directory for logs and pidfile and etc.
if [ ! -d /var/nessus ]
then
mkdir -pm 0700 /var/nessus
fi
2000-07-02 21:03:50 -04:00
fi
exit 0