clean out /opt/chia before install and after removal of rpm (#16991)

This commit is contained in:
Kyle Altendorf 2023-12-05 17:33:43 -05:00 committed by GitHub
parent 196459382a
commit 949ed00e47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -e
# handling multiple cases where empty directories are left behind resulting
# in issues with the python identifying the blockchain version
find /opt/chia -type d -empty -delete || true

View File

@ -74,6 +74,8 @@ fpm -s dir -t rpm \
--rpm-tag 'Recommends: libxcrypt-compat' \
--rpm-tag '%define _build_id_links none' \
--rpm-tag '%undefine _missing_build_ids_terminate_build' \
--before-install=assets/rpm/before-install.sh \
--rpm-tag 'Requires(pre): findutils' \
.
# CLI only rpm done
cp -r dist/daemon ../chia-blockchain-gui/packages/gui