Use `rm -f` in rpm spec to prevent failure on missing file

This commit is contained in:
Michael Shuler 2019-09-05 13:01:53 -07:00
parent 145f6d6dc4
commit 4cb90dbbd0
1 changed files with 8 additions and 8 deletions

View File

@ -74,14 +74,14 @@ patch -p1 < debian/patches/cassandra_logdir_fix.diff
sed -i 's/^# hints_directory:/hints_directory:/' conf/cassandra.yaml
# remove batch, powershell, and other files not being installed
rm conf/*.ps1
rm bin/*.bat
rm bin/*.orig
rm bin/*.ps1
rm bin/cassandra.in.sh
rm lib/sigar-bin/*winnt* # strip segfaults on dll..
rm tools/bin/*.bat
rm tools/bin/cassandra.in.sh
rm -f conf/*.ps1
rm -f bin/*.bat
rm -f bin/*.orig
rm -f bin/*.ps1
rm -f bin/cassandra.in.sh
rm -f lib/sigar-bin/*winnt* # strip segfaults on dll..
rm -f tools/bin/*.bat
rm -f tools/bin/cassandra.in.sh
# copy default configs
cp -pr conf/* %{buildroot}/%{_sysconfdir}/%{username}/default.conf/