diff --git a/netoik-api.spec b/netoik-api.spec index 52e1aa7..dc448e1 100644 --- a/netoik-api.spec +++ b/netoik-api.spec @@ -33,10 +33,10 @@ systemctl daemon-reload systemctl restart %{name}-server.service %preun -$1 -eq 0 && systemctl stop %{name}-server.service +[ $1 -eq 0 ] && systemctl stop %{name}-server.service %postun -$1 -eq 0 && systemctl daemon-reload && userdel %{name} +[ $1 -eq 0 ] && systemctl daemon-reload && userdel %{name} %files %attr(755, root, root) %dir %{_var}/%{name}