[arch-commits] Commit in elasticsearch/trunk (PKGBUILD elasticsearch.install)

Massimiliano Torromeo mtorromeo at archlinux.org
Fri Feb 6 15:33:58 UTC 2015


    Date: Friday, February 6, 2015 @ 16:33:58
  Author: mtorromeo
Revision: 127191

upgpkg: elasticsearch 1.4.2-2

No user removal at uninstall time

Modified:
  elasticsearch/trunk/PKGBUILD
  elasticsearch/trunk/elasticsearch.install

-----------------------+
 PKGBUILD              |    4 +++-
 elasticsearch.install |   11 -----------
 2 files changed, 3 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-02-06 15:01:37 UTC (rev 127190)
+++ PKGBUILD	2015-02-06 15:33:58 UTC (rev 127191)
@@ -5,7 +5,7 @@
 
 pkgname=elasticsearch
 pkgver=1.4.2
-pkgrel=1
+pkgrel=2
 pkgdesc="Distributed RESTful search engine built on top of Lucene"
 arch=('i686' 'x86_64')
 url="http://www.elasticsearch.org/"
@@ -79,4 +79,6 @@
   install -Dm644 "$srcdir"/elasticsearch.default "$pkgdir"/etc/default/elasticsearch
 
   ln -s ../../../var/lib/elasticsearch "$pkgdir"/usr/share/elasticsearch/data
+
+  chown -R 114:144 "$pkgdir"/usr/share/elasticsearch
 }

Modified: elasticsearch.install
===================================================================
--- elasticsearch.install	2015-02-06 15:01:37 UTC (rev 127190)
+++ elasticsearch.install	2015-02-06 15:33:58 UTC (rev 127191)
@@ -1,19 +1,8 @@
 post_install() {
     systemd-sysusers elasticsearch.conf
     systemd-tmpfiles --create elasticsearch.conf
-    chown -R elasticsearch:elasticsearch /usr/share/elasticsearch
 }
 
 post_upgrade(){
-    systemd-sysusers elasticsearch.conf
     systemd-tmpfiles --create elasticsearch.conf
 }
-
-post_remove() {
-    if getent passwd elasticsearch >/dev/null 2>&1; then
-        userdel elasticsearch
-    fi
-    if getent group elasticsearch >/dev/null 2>&1; then
-        groupdel elasticsearch
-    fi
-}



More information about the arch-commits mailing list