summaryrefslogtreecommitdiffstats
path: root/specs
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2016-08-06 02:13:23 +0200
committerEndi S. Dewata <edewata@redhat.com>2016-08-06 03:00:09 +0200
commit066628e929378761563706522b7174cc47094cdf (patch)
treec432fa56a6d7cd792b791a372a1e452e7a69e808 /specs
parentb04707631a362581804574edd0641a3fdbc16565 (diff)
downloadpki-066628e929378761563706522b7174cc47094cdf.tar.gz
pki-066628e929378761563706522b7174cc47094cdf.tar.xz
pki-066628e929378761563706522b7174cc47094cdf.zip
Fixed RPM spec for client-only build.
The RPM spec has been fixed not to include the %pre script for the pki-server package if --without-server parameter is specified. https://fedorahosted.org/pki/ticket/2403
Diffstat (limited to 'specs')
-rw-r--r--specs/pki-core.spec4
1 files changed, 4 insertions, 0 deletions
diff --git a/specs/pki-core.spec b/specs/pki-core.spec
index c206b2752..017ecf6a0 100644
--- a/specs/pki-core.spec
+++ b/specs/pki-core.spec
@@ -981,6 +981,8 @@ if (test("/etc/sysconfig/pki/ca") or
end
%endif
+%if %{with server}
+
%pre -n pki-server
getent group %{pki_groupname} >/dev/null || groupadd -f -g %{pki_gid} -r %{pki_groupname}
if ! getent passwd %{pki_username} >/dev/null ; then
@@ -992,6 +994,8 @@ if ! getent passwd %{pki_username} >/dev/null ; then
fi
exit 0
+%endif # %{with server}
+
%post -n pki-base
if [ $1 -eq 1 ]