summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Orton <jorton@redhat.com>2012-06-07 14:03:31 +0100
committerJoe Orton <jorton@redhat.com>2012-06-07 14:03:31 +0100
commitce0280ab5c3c1e8f23959eeca43180276a1678b4 (patch)
treec20d1acccdf5df13ddd6a5b5c099fcc144cdf3f8
parentef68bba83ed30e488e264252665a91801475db2d (diff)
downloadhttpd-ce0280ab5c3c1e8f23959eeca43180276a1678b4.tar.gz
httpd-ce0280ab5c3c1e8f23959eeca43180276a1678b4.tar.xz
httpd-ce0280ab5c3c1e8f23959eeca43180276a1678b4.zip
use _unitdir for systemd unit file
-rw-r--r--httpd.spec6
1 files changed, 3 insertions, 3 deletions
diff --git a/httpd.spec b/httpd.spec
index 8313b3e..4f40daf 100644
--- a/httpd.spec
+++ b/httpd.spec
@@ -242,9 +242,9 @@ rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
# Install systemd service files
-mkdir -p $RPM_BUILD_ROOT/lib/systemd/system
+mkdir -p $RPM_BUILD_ROOT%{_unitdir}
install -p -m 644 $RPM_SOURCE_DIR/httpd.service \
- $RPM_BUILD_ROOT/lib/systemd/system/httpd.service
+ $RPM_BUILD_ROOT%{_unitdir}/httpd.service
# install conf file/directory
mkdir $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d \
@@ -523,7 +523,7 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man8/*
-/lib/systemd/system/*.service
+%{_unitdir}/*.service
%files tools
%defattr(-,root,root)