[arch-commits] Commit in kdebase-workspace/kde-unstable (kdebase-workspace.install)

Andrea Scarpino andrea at archlinux.org
Sat Jun 26 09:25:28 EDT 2010


    Date: Saturday, June 26, 2010 @ 09:25:28
  Author: andrea
Revision: 84095

Modified:
  kdebase-workspace/kde-unstable/kdebase-workspace.install

---------------------------+
 kdebase-workspace.install |   11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

Modified: kdebase-workspace.install
===================================================================
--- kdebase-workspace.install	2010-06-26 13:18:05 UTC (rev 84094)
+++ kdebase-workspace.install	2010-06-26 13:25:28 UTC (rev 84095)
@@ -5,14 +5,9 @@
 }
 
 post_upgrade() {
-	if getent passwd kdm >/dev/null 2>&1; then
-	  userdel kdm
-	fi
-	if getent group kdm >/dev/null 2>&1; then
-	  groupdel kdm
-	fi
-
-	post_install
+	getent group kdm >/dev/null 2>&1 || groupadd -g 135 kdm &>/dev/null
+	getent passwd kdm >/dev/null 2>&1 || useradd -u 135 -g kdm -d /var/lib/kdm -s /bin/false -r kdm &>/dev/null
+	xdg-icon-resource forceupdate --theme hicolor &> /dev/null
 }
 
 post_remove() {



More information about the arch-commits mailing list