wok-next diff nagios/receipt @ rev 20607
perdition: up 2.2
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Apr 19 15:57:59 2018 +0300 (2018-04-19) |
parents | b278b2018965 |
children | 68d93367f930 |
line diff
1.1 --- a/nagios/receipt Mon Mar 12 02:18:53 2018 +0200 1.2 +++ b/nagios/receipt Thu Apr 19 15:57:59 2018 +0300 1.3 @@ -18,19 +18,16 @@ 1.4 sed -i '/sysconfdir=/ s|^|#|' /etc/slitaz/cook.site # default sysconfdir=/etc 1.5 1.6 ./configure \ 1.7 - --prefix=/usr \ 1.8 - --infodir=/usr/share/info \ 1.9 - --mandir=/usr/share/man \ 1.10 + --sysconfdir=/etc/nagios \ 1.11 + --libexecdir=/usr/lib/nagios/plugins \ 1.12 + --sbindir=/usr/lib/nagios/cgi \ 1.13 + --datadir=/usr/share/nagios \ 1.14 + --localstatedir=/var/lib/nagios \ 1.15 --with-nagios-user=nagios \ 1.16 --with-nagios-group=nagios \ 1.17 --with-lockfile=/var/run/nagios/nagios.pid \ 1.18 --with-checkresult-dir=/var/spool/nagios/checkresults \ 1.19 - --sysconfdir=/etc/nagios \ 1.20 --with-httpd-conf=/etc/apache/conf.d \ 1.21 - --libexecdir=/usr/lib/nagios/plugins \ 1.22 - --sbindir=/usr/lib/nagios/cgi \ 1.23 - --datadir=/usr/share/nagios \ 1.24 - --localstatedir=/var/lib/nagios \ 1.25 $CONFIGURE_ARGS && 1.26 sed -i 's!HTMLDIR=.*!HTMLDIR=/usr/share/nagios!' html/Makefile && 1.27 1.28 @@ -83,10 +80,8 @@ 1.29 1.30 post_install_nagios() { 1.31 if ! grep -q nagios "$1/etc/passwd"; then 1.32 - echo -n "Adding user/group nagios..." 1.33 chroot "$1/" addgroup -S nagios 1.34 chroot "$1/" adduser -S -D -H -G nagios nagios 1.35 - status 1.36 fi 1.37 1.38 # Fix perms for files and directories 1.39 @@ -107,7 +102,7 @@ 1.40 1.41 .--------------------------------------------------------------. 1.42 | To starts nagios server you can run: | 1.43 - | /etc/init.d/$PACKAGE start | 1.44 + | /etc/init.d/nagios start | 1.45 | | 1.46 | Or add nagios to RUN_DAEMONS in /etc/rcS.conf | 1.47 |--------------------------------------------------------------|