rev 20849 - kde-extras/icecream/trunk/debian

Pino Toscano pino at moszumanska.debian.org
Sat Sep 30 07:20:24 UTC 2017


Author: pino
Date: 2017-09-30 07:20:23 +0000 (Sat, 30 Sep 2017)
New Revision: 20849

Modified:
   kde-extras/icecream/trunk/debian/changelog
   kde-extras/icecream/trunk/debian/icecc.postinst
Log:
use getent in icecc.postinst (#783940)


Modified: kde-extras/icecream/trunk/debian/changelog
===================================================================
--- kde-extras/icecream/trunk/debian/changelog	2017-09-30 07:05:24 UTC (rev 20848)
+++ kde-extras/icecream/trunk/debian/changelog	2017-09-30 07:20:23 UTC (rev 20849)
@@ -19,6 +19,7 @@
   * Tweak the installed documentation:
     - install README.md instead of README, since the former has better content
     - do not install TODO, since it is not suitable for users
+  * Use getent in icecc.postinst. (Closes: #783940)
 
  -- Debian KDE Extras Team <pkg-kde-extras at lists.alioth.debian.org>  Sat, 30 Sep 2017 08:05:56 +0200
 

Modified: kde-extras/icecream/trunk/debian/icecc.postinst
===================================================================
--- kde-extras/icecream/trunk/debian/icecc.postinst	2017-09-30 07:05:24 UTC (rev 20848)
+++ kde-extras/icecream/trunk/debian/icecc.postinst	2017-09-30 07:20:23 UTC (rev 20849)
@@ -14,11 +14,11 @@
 ICECC_HOME=/var/cache/icecc
 
 # create group
-grep -q $ICECC_GROUP /etc/group || ( echo Creating $ICECC_GROUP group... ; \
+getent group $ICECC_GROUP > /dev/null || ( echo Creating $ICECC_GROUP group... ; \
 addgroup --quiet --system $ICECC_GROUP)
 
 # create user
-grep -q $ICECC_USER /etc/passwd || ( echo Creating $ICECC_USER user... ; \
+getent passwd $ICECC_USER > /dev/null || ( echo Creating $ICECC_USER user... ; \
 adduser --quiet --system --ingroup $ICECC_GROUP \
 --home $ICECC_HOME --no-create-home $ICECC_USER )
 




More information about the pkg-kde-commits mailing list