Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=da0fa35a70f05abea97c042a4d5b5eda9f29f8fa

commit da0fa35a70f05abea97c042a4d5b5eda9f29f8fa
Author: DeX77 <[email protected]>
Date:   Fri Aug 18 16:04:19 2017 +0200

postgresql-9.6.4-2-x86_64

* small fix for user/group deletion in install

diff --git a/source/apps-extra/postgresql/FrugalBuild 
b/source/apps-extra/postgresql/FrugalBuild
index 1243b22..e8627c2 100644
--- a/source/apps-extra/postgresql/FrugalBuild
+++ b/source/apps-extra/postgresql/FrugalBuild
@@ -6,7 +6,7 @@ USE_TCL=${USE_TCL:-"y"}

pkgname=postgresql
pkgver=9.6.4
-pkgrel=1
+pkgrel=2
pkgdesc="An advanced Object-Relational database management system (DBMS)"
url="http://www.postgresql.org/";
depends=('openssl>=1.0.2-8' 'readline>=6.3-14' 'libxml2>=2.9.4-3' 
'ncurses>=6.0-16')
diff --git a/source/apps-extra/postgresql/postgresql.install 
b/source/apps-extra/postgresql/postgresql.install
index e83e51c..df96aa4 100644
--- a/source/apps-extra/postgresql/postgresql.install
+++ b/source/apps-extra/postgresql/postgresql.install
@@ -41,8 +41,8 @@ pre_remove()

post_remove()
{
-       getent passwd postgres > /dev/null 2>&1 && userdel postgres
-       getent group pgdb > /dev/null 2>&1 && groupdel pgdb
+       getent passwd postgres > /dev/null 2>&1 && /usr/sbin/userdel postgres
+       getent group pgdb > /dev/null 2>&1 && /usr/sbin/groupdel pgdb

systemctl daemon-reload >/dev/null 2>&1
}
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to