[18/20] SPECfile cleanup - make sure the target directory exists
The 'mv' command failed after the last commit, beacuse the line | install -p -m 644 -D selinux/%{pkg_name}-server-galera.pp %{buildroot}%{_datadir}/selinux/packages/targeted/%{pkg_name}-server-galera.pp which was originally before the cracklib condition, created the target directory tree thanks to the | install -D functionality.
This commit is contained in:
parent
d8f486421c
commit
e86906d050
@ -954,6 +954,7 @@ echo "d %{pidfiledir} 0755 mysql mysql -" >>%{buildroot}%{_tmpfilesdir}/%{pkg_na
|
||||
|
||||
# Install additional cracklib selinux policy
|
||||
%if %{with cracklib}
|
||||
mkdir -p %{buildroot}%{_datadir}/selinux/packages/targeted/
|
||||
mv %{buildroot}%{_datadir}/mariadb/policy/selinux/mariadb-plugin-cracklib-password-check.pp %{buildroot}%{_datadir}/selinux/packages/targeted/%{pkg_name}-plugin-cracklib-password-check.pp
|
||||
rm %{buildroot}%{_datadir}/mariadb/policy/selinux/mariadb-plugin-cracklib-password-check.te
|
||||
%endif
|
||||
|
Loading…
Reference in New Issue
Block a user