blob: d28804b991e82e62e4ff9a7e65b10c35ed239d72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
post_install() {
systemd-sysusers ntopng.conf
mkdir -p var/lib/ntopng
chown -R ntopng:ntopng var/lib/ntopng
echo -e "${bold_green}==>${color_reset} ${bold_white}Enable/start your valkey.service before using ntopng!${color_reset}"
echo -e " ${bold_blue}#${color_reset} ${bold_white}systemctl ${bold_underline_white}enable${bold_white} valkey${color_reset}"
echo -e " ${bold_blue}#${color_reset} ${bold_white}systemctl ${bold_underline_white}start${bold_white} valkey${color_reset}"
echo -e ""
echo -e "${bold_green}==>${color_reset} ${bold_white}After enable/start ntopng@ service!${color_reset}"
echo -e " ${bold_blue}#${color_reset} ${bold_white}systemctl ${bold_underline_white}enable${bold_white} ntopng@<interface>${color_reset}"
echo -e " ${bold_blue}#${color_reset} ${bold_white}systemctl ${bold_underline_white}start${bold_white} ntopng@<interface>${color_reset}"
echo -e ""
echo -e "Now open ${bold_underline_white}http://localhost:3000/${color_reset} in your favourite browser."
echo -e " ${bold_blue}->${color_reset} ${bold_white}More info at https://www.ntop.org/${color_reset}"
}
|