[fix] Missing braces for condition in spec file
This commit is contained in:
parent
a17d9372bc
commit
82c6f7af2a
|
@ -33,10 +33,10 @@ systemctl daemon-reload
|
||||||
systemctl restart %{name}-server.service
|
systemctl restart %{name}-server.service
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
$1 -eq 0 && systemctl stop %{name}-server.service
|
[ $1 -eq 0 ] && systemctl stop %{name}-server.service
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
$1 -eq 0 && systemctl daemon-reload && userdel %{name}
|
[ $1 -eq 0 ] && systemctl daemon-reload && userdel %{name}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%attr(755, root, root) %dir %{_var}/%{name}
|
%attr(755, root, root) %dir %{_var}/%{name}
|
||||||
|
|
Loading…
Reference in New Issue