no systemd rpm macros

Signed-off-by: Christine Dodrill <me@christine.website>
This commit is contained in:
Cadey Ratio 2021-05-22 18:08:09 -04:00
parent 8ea59c07e7
commit 96100686d7
1 changed files with 2 additions and 3 deletions

View File

@ -29,8 +29,6 @@ if [ $1 -eq 2 ]; then
fi
%post
%systemd_post %{pkgname}.service
if [ $1 -eq 1 ]; then
/usr/bin/systemctl daemon-reload
/usr/bin/systemctl start %{pkgname}.service
@ -41,7 +39,6 @@ if [ $1 -eq 2 ]; then
fi
%preun
%systemd_preun %{pkgname}.service
#old package
#uninstall
if [ $1 -eq 0 ]; then
@ -65,6 +62,8 @@ fi
rm -rf %{buildroot}
mkdir -p %{buildroot}
cp -a * %{buildroot}
mkdir -p %{buildroot}%{_unitdir}
install -m 0644 .%{_unitdir}/%{pkgname}.service %{buildroot}%{_unitdir}
%clean
rm -rf %{buildroot}