summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshizhendong <[email protected]>2024-05-17 17:22:55 +0800
committershizhendong <[email protected]>2024-05-17 17:22:55 +0800
commitb16a68d6005c5c7a5c8a32bdcdae83ec4d96ece7 (patch)
tree00e04b146fd02c201d2aa7339905a0fbee8dce13
parentefe8ce82ebd468ecaa687ffd4148e7e0e5b99111 (diff)
build: fpm 打包时添加依赖项nz_ipmi_exporter-24.01.04
-rw-r--r--tools/afterinstall.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/afterinstall.sh b/tools/afterinstall.sh
index ae45997..5bda702 100644
--- a/tools/afterinstall.sh
+++ b/tools/afterinstall.sh
@@ -93,7 +93,7 @@ if [ 1 -eq $1 ];then
! command -v ipmi-sel &> /dev/null; then
echo 'freeipmi not found, start install'
- flock /var/lib/rpm/.rpm.lock rpm -ivh /opt/nezha/ipmi_exporter/deps/freeipmi-1.5.7-3.el7.x86_64.rpm
+ yum install -y /opt/nezha/ipmi_exporter/deps/freeipmi-1.5.7-3.el7.x86_64.rpm
echo 'freeipmi install completed'
else
echo 'freeipmi already exists'