couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From woh...@apache.org
Subject [couchdb-pkg] 01/01: Eliminate duplicate symlink, fixes #7
Date Tue, 07 Nov 2017 22:56:15 GMT
This is an automated email from the ASF dual-hosted git repository.

wohali pushed a commit to branch fix-rpm-symlink
in repository https://gitbox.apache.org/repos/asf/couchdb-pkg.git

commit 07f3361020c90ebe60341712d87cc92ce21ae482
Author: Joan Touzet <wohali@apache.org>
AuthorDate: Tue Nov 7 14:53:24 2017 -0800

    Eliminate duplicate symlink, fixes #7
---
 rpm/SPECS/couchdb.spec | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rpm/SPECS/couchdb.spec b/rpm/SPECS/couchdb.spec
index 52c0849..a2b11a9 100644
--- a/rpm/SPECS/couchdb.spec
+++ b/rpm/SPECS/couchdb.spec
@@ -108,12 +108,12 @@ if ! /usr/bin/getent passwd couchdb > /dev/null; then /usr/sbin/adduser
\
 %else
 %{__install} -Dp -m0755 %{SOURCE2} %{buildroot}%{_initrddir}/%{name}
 %endif
+%{__ln_s} -f -T %{_sharedstatedir}/%{name} %{buildroot}/opt/%{name}/data
+%{__ln_s} -f -T /var/log/%{name} %{buildroot}/opt/%{name}/var/log/%{name}
 
 %post
 %{__chown} -R couchdb:couchdb /opt/%{name}
 %{__chmod} a+x /opt/%{name}/bin/*
-%{__ln_s} %{_sharedstatedir}/%{name} /opt/%{name}/data
-%{__ln_s} /var/log/%{name} /opt/%{name}/var/log/%{name}
 %if 0%{?fedora} || 0%{?rhel} >= 7
 %systemd_post %{name}.service
 %else

-- 
To stop receiving notification emails like this one, please contact
"commits@couchdb.apache.org" <commits@couchdb.apache.org>.

Mime
View raw message