ref: 打包脚本调整

This commit is contained in:
TsMask committed 2025-03-20 10:13:04 +08:00
1 parent 3655fb999a
commit f35c535a77
2 files changed
+9 -1

No files matched your search

+1 -1
View File
@@ -95,7 +95,7 @@ fi
# =========================
if [[ "$T_PARAM" == "install" && "$MODE" == "standard" ]]; then
if ! command -v mysql &> /dev/null && ! command -v mariadb &> /dev/null; then
if ! command -v mysql &> /dev/null || ! command -v mariadb &> /dev/null; then
echo "MySQL or MariaDB not installed"
exit 1
fi
+8
View File
@@ -75,6 +75,14 @@ if [ -n "$BuildApi" ]; then
make
cp -rf sshsvc $output/sshsvc
echo "===> go build sshsvc copy to $output"
# Vendor Database
dirs="database default vendor"
for v in ${dirs}; do
path=$BuildDir/tmp/usr/local/etc/omc
rm -rf ${path}/${v}
cp -rf ${ApiDir}/build/${v} ${path}/${v}
done
fi
# =================== deb/rpm