[arch-commits] Commit in chrony/trunk (PKGBUILD chrony.install)
Sergej Pupykin
spupykin at archlinux.org
Tue Feb 10 17:18:29 UTC 2015
Date: Tuesday, February 10, 2015 @ 18:18:29
Author: spupykin
Revision: 127511
upgpkg: chrony 1.31-2
upd
Modified:
chrony/trunk/PKGBUILD
chrony/trunk/chrony.install
----------------+
PKGBUILD | 2 +-
chrony.install | 10 ++--------
2 files changed, 3 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-02-10 17:04:17 UTC (rev 127510)
+++ PKGBUILD 2015-02-10 17:18:29 UTC (rev 127511)
@@ -9,7 +9,7 @@
pkgname=chrony
pkgver=1.31
-pkgrel=1
+pkgrel=2
pkgdesc='Lightweight NTP client and server'
arch=('i686' 'x86_64')
url="http://chrony.tuxfamily.org/"
Modified: chrony.install
===================================================================
--- chrony.install 2015-02-10 17:04:17 UTC (rev 127510)
+++ chrony.install 2015-02-10 17:18:29 UTC (rev 127511)
@@ -13,8 +13,8 @@
post_upgrade() {
if [[ $(vercmp $2 1.29.1-2) -le 0 ]]; then
- getent group chrony &>/dev/null || groupadd -g 183 chrony >/dev/null
- getent passwd chrony &>/dev/null || useradd -u 183 -g chrony -d /var/lib/chrony -c 'Network Time Protocol' -s /bin/false chrony >/dev/null
+ getent group chrony &>/dev/null || groupadd -r -g 183 chrony >/dev/null
+ getent passwd chrony &>/dev/null || useradd -r -u 183 -g chrony -d /var/lib/chrony -c 'Network Time Protocol' -s /bin/false chrony >/dev/null
chown -R 183:183 /var/lib/chrony
fi
@@ -24,12 +24,6 @@
done
}
-post_remove() {
- getent passwd chrony &>/dev/null && userdel chrony >/dev/null
- getent group chrony &>/dev/null && groupdel chrony >/dev/null
- true
-}
-
pre_remove() {
[[ -x usr/bin/install-info ]] || return 0
for file in "${filelist[@]}"; do
More information about the arch-commits
mailing list