blob: c4ff8bc0caffba0ee528c55e7c7867d9e9b0943c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Colors
#note() {
# printf "${blue}==>${yellow} NOTE:${bold} $1${all_off}\n"
#}
note() {
printf "${BLUE}==>${ALL_OFF}${BOLD} NOTE:${ALL_OFF} ${1}\n"
}
ALL_OFF="$(tput sgr0)"
BOLD="$(tput bold)"
BLUE="${BOLD}$(tput setaf 4)"
GREEN="${BOLD}$(tput setaf 2)"
post_install() {
getent group netflow &>/dev/null || groupadd -r -g 44 netflow >/dev/null
getent passwd netflow &>/dev/null || useradd -r -u 44 -g netflow -d /var/lib/nfsen -s /bin/false -G http netflow >/dev/null
usr/bin/systemd-tmpfiles --create nfsen.conf || true
note 'To complete the installation, run:'
note ' cd /usr/share/webapps/nfsen'
note ' su -c "./install.pl /etc/nfsen/nfsen.conf"'
note ''
note 'For more information on installation and configuration, see:'
note ' /usr/share/doc/nfsen/README.pkg and others'
note ''
}
post_upgrade() {
note ''
note 'To complete the update, run:'
note ' cd /usr/share/webapps/nfsen'
note ' su -c "./install.pl /etc/nfsen/nfsen.conf"'
note ''
note 'For more information on installation and configuration, see:'
note ' /usr/share/doc/nfsen/README.pkg and others'
note ''
}
|