no systemd rpm macros
Signed-off-by: Christine Dodrill <me@christine.website>
This commit is contained in:
parent
8ea59c07e7
commit
96100686d7
|
@ -29,8 +29,6 @@ if [ $1 -eq 2 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%systemd_post %{pkgname}.service
|
|
||||||
|
|
||||||
if [ $1 -eq 1 ]; then
|
if [ $1 -eq 1 ]; then
|
||||||
/usr/bin/systemctl daemon-reload
|
/usr/bin/systemctl daemon-reload
|
||||||
/usr/bin/systemctl start %{pkgname}.service
|
/usr/bin/systemctl start %{pkgname}.service
|
||||||
|
@ -41,7 +39,6 @@ if [ $1 -eq 2 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%systemd_preun %{pkgname}.service
|
|
||||||
#old package
|
#old package
|
||||||
#uninstall
|
#uninstall
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
|
@ -65,6 +62,8 @@ fi
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
mkdir -p %{buildroot}
|
mkdir -p %{buildroot}
|
||||||
cp -a * %{buildroot}
|
cp -a * %{buildroot}
|
||||||
|
mkdir -p %{buildroot}%{_unitdir}
|
||||||
|
install -m 0644 .%{_unitdir}/%{pkgname}.service %{buildroot}%{_unitdir}
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
Loading…
Reference in New Issue