1
0

ref: 打包脚本调整

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

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
pkg.sh
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