From 5bf4e2e6947f84bbae1e1511c53d57a6424e45b9 Mon Sep 17 00:00:00 2001 From: wangchong1995924 <15229716099@163.com> Date: Tue, 13 Apr 2021 20:07:48 +0800 Subject: [PATCH] add createrepo action after del_pkg_rpm --- script/tools/pkg_rpm_update.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/script/tools/pkg_rpm_update.sh b/script/tools/pkg_rpm_update.sh index bd6f310..818e265 100755 --- a/script/tools/pkg_rpm_update.sh +++ b/script/tools/pkg_rpm_update.sh @@ -275,6 +275,7 @@ function del_pkg_rpm(){ sed -i "/^$pkg$/d" pkglist done scp -i ${update_key} -o StrictHostKeyChecking=no pkglist root@${update_ip}:${update_path}/ + ssh -i ${update_key} -o StrictHostKeyChecking=no root@${update_ip} "cd ${update_path} && createrepo -d aarch64 && createrepo -d x86_64 && createrepo -d source" check_update_rpm ${obs_proj} ${up_dir} ${pkg_place} ${update_key} ${pkglist} "delete" fi } -- Gitee