summarylogtreecommitdiffstats
path: root/install
blob: 5be4d546e641ce8c9ebd89a4f6cd11b650d8feca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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""
}

post_upgrade() {
        note "To complete the update, run:"
        note "    cd /usr/share/webapps/nfsen"
        note "    su -c "./install.pl /etc/nfsen.conf""
}