blob: 271140bfb1013a7599d6fc22f148cf6a5ed46d10 (
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
|
note() {
printf "${blue}==>${yellow} NOTE:${bold} $1${all_off}\n"
}
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 netflow http >/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.conf""
echo ""
note "If you edited /etc/nfsen.conf you also need to run:"
note " cd /usr/share/webapps/nfsen"
note " su -c "./install.pl /etc/nfsen.conf""
echo ""
note "If you want to use the nginx to access the web, run:"
note " sudo pacman -S nginx php-fpm"
note " Edit /etc/php/php.ini:"
note " Remove comment from ";extension=sockets.so" string"
note " Set up virtualhost in nginx"
notr " An example of the setting for nginx is in the file /usr/share/doc/nfsen/vhost-nginx.conf "
note " And run:"
note " sudo systemctl start nginx php-fpm"
echo ""
note "If you are using a web server Apache you know what to do :)"
echo ""
}
post_upgrade() {
note "To complete the update, run:"
note " cd /usr/share/webapps/nfsen"
note " su -c "./install.pl /etc/nfsen.conf""
}
|