[#29] 整合metric模块端到端测试跑通;整合web/alert模块镜像构建
This commit is contained in:
18
src/sys/tests/scripts/14_metric_cleanup.sh
Executable file
18
src/sys/tests/scripts/14_metric_cleanup.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
TEST_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
||||
|
||||
FTP_SHARE="$TEST_ROOT/private/argus/metric/ftp/share"
|
||||
|
||||
if [[ -d "$FTP_SHARE" ]]; then
|
||||
echo "[SYS-METRIC] 清理 FTP 发布产物..."
|
||||
rm -f "$FTP_SHARE"/argus-metric_*.tar.gz 2>/dev/null || true
|
||||
rm -f "$FTP_SHARE"/LATEST_VERSION 2>/dev/null || true
|
||||
rm -f "$FTP_SHARE"/dns.conf "$FTP_SHARE"/setup.sh 2>/dev/null || true
|
||||
else
|
||||
echo "[SYS-METRIC] FTP 目录不存在,跳过清理"
|
||||
fi
|
||||
|
||||
echo "[SYS-METRIC] Metric 清理完成"
|
||||
Reference in New Issue
Block a user