diff options
author | 4le34n | 2017-08-31 14:39:47 +1100 |
---|---|---|
committer | 4le34n | 2017-08-31 14:39:47 +1100 |
commit | 018c09f1cbfecf001338867348484454544d17f7 (patch) | |
tree | e3da55680bff3c6860fa998de86f7561baf3d28d | |
parent | e56458d74eec9e8a6db44fedcb8b84c27de7d6d2 (diff) | |
download | aur-018c09f1cbfecf001338867348484454544d17f7.tar.gz |
Change install script
-rw-r--r-- | PKGBUILD | 2 | ||||
-rw-r--r-- | install | 12 |
2 files changed, 12 insertions, 2 deletions
@@ -2,7 +2,7 @@ pkgname=nfsen pkgver=1.3.8 -pkgrel=24 +pkgrel=25 pkgdesc="Netflow visualisation and investigation tool" arch=('i686' 'x86_64') url="https://sourceforge.net/projects/nfsen" @@ -1,7 +1,17 @@ +# Colors +#note() { +# printf "${blue}==>${yellow} NOTE:${bold} $1${all_off}\n" +#} + note() { - printf "${blue}==>${yellow} NOTE:${bold} $1${all_off}\n" + 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 |