summarylogtreecommitdiffstats
diff options
context:
space:
mode:
author4le34n2017-08-31 14:39:47 +1100
committer4le34n2017-08-31 14:39:47 +1100
commit018c09f1cbfecf001338867348484454544d17f7 (patch)
treee3da55680bff3c6860fa998de86f7561baf3d28d
parente56458d74eec9e8a6db44fedcb8b84c27de7d6d2 (diff)
downloadaur-018c09f1cbfecf001338867348484454544d17f7.tar.gz
Change install script
-rw-r--r--PKGBUILD2
-rw-r--r--install12
2 files changed, 12 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 2e04621a4dd3..aba70d6fa9dd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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"
diff --git a/install b/install
index 342b81a9cf97..c4ff8bc0caff 100644
--- a/install
+++ b/install
@@ -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