2 # Filename: grml-nessus
3 # Purpose: prepare nessus for use on grml system
4 # Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports: see http://grml.org/bugs/
6 # License: This file is licensed under the GPL v2.
7 # Latest change: Mon Sep 11 17:31:07 CEST 2006 [mika]
8 ################################################################################
10 PATH=${PATH:-'/bin/:/sbin/:/usr/local/bin:/usr/bin:/usr/sbin'}
13 [ "`id -u`" != "0" ] && exec sudo "$0" "$@"
14 . /etc/grml/lsb-functions
17 dialog --stdout --title "$PN" --msgbox "Welcome to $PN!
19 This script will prepare your grml system
20 for use with nessus[d].
22 Report bugs, send wishes and feedback to the grml team:
23 http://www.grml.org/ - contact (at) grml.org
27 dialog --stdout --title "$PN" --yesno "Run nessus-adduser for adding user?" 0 0
31 einfo "Adding user for nessusd."
32 nessus-adduser ; eend $?
35 ewarn "Cancel pressed."
43 dialog --stdout --title "$PN" --yesno "Run nessus-mkcert?" 0 0
47 einfo "Running nessus-mkcert."
48 nessus-mkcert ; eend $?
53 dialog --stdout --title "$PN" --yesno "Start nessus daemon now?" 0 0
57 einfo "Starting nessus daemon. This might take some time [for initializing plugins]."
58 if [ -r /etc/nessus/nessus-services ] ; then
59 [ -L /var/lib/nessus/nessus-services ] || ln -s /etc/nessus/nessus-services /var/lib/nessus/nessus-services
61 [ -d /var/lib/nessus/nessus-services ] || mkdir /var/lib/nessus/nessus-services
66 ewarn "Cancel pressed."
74 dialog --stdout --title "$PN" --msgbox "Thanks for using $PN!
76 For more information on nessus take a look at the manpage
77 (man 1 nessus) and the nessus webpage at www.nessus.org
79 #######################################################
81 Report bugs, send wishes and feedback to the grml team:
82 http://www.grml.org/ - contact (at) grml.org
87 dialog --stdout --title "$PN" --yesno "Run nessus client (requires X window system) now?" 0 0
95 ewarn "Cancel pressed."
102 ## END OF FILE #################################################################