Skip to content
Snippets Groups Projects
Commit a706516a authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

Fix user/group management.

parent 1ea74045
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ pkgname=ntp
_pkgname=ntp #-dev
_pkgver=4.2.8p6
pkgver=${_pkgver/p/.p}
pkgrel=1
pkgrel=2
pkgdesc='Network Time Protocol reference implementation'
url='http://www.ntp.org/'
license=('custom')
......@@ -23,7 +23,7 @@ sha1sums=('7244b0fb66ceb66283480e8f83a4c4a2099f9cd7'
'059b382d1af0c55202e2d17f2ae065a2cbfec9ee')
options=('!emptydirs')
install=install
install=ntp.install
build() {
cd "${srcdir}/${_pkgname}-${_pkgver}"
......
......@@ -3,9 +3,3 @@ post_install() {
getent passwd ntp &>/dev/null || useradd -u 87 -g ntp -d /var/lib/ntp -c 'Network Time Protocol' -s /bin/false ntp >/dev/null
true
}
post_remove() {
getent passwd ntp &>/dev/null && userdel ntp >/dev/null
getent group ntp &>/dev/null && groupdel ntp >/dev/null
true
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment