ref: 打包脚本调整
This commit is contained in:
@@ -95,7 +95,7 @@ fi
|
|||||||
|
|
||||||
# =========================
|
# =========================
|
||||||
if [[ "$T_PARAM" == "install" && "$MODE" == "standard" ]]; then
|
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"
|
echo "MySQL or MariaDB not installed"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
8
pkg.sh
8
pkg.sh
@@ -75,6 +75,14 @@ if [ -n "$BuildApi" ]; then
|
|||||||
make
|
make
|
||||||
cp -rf sshsvc $output/sshsvc
|
cp -rf sshsvc $output/sshsvc
|
||||||
echo "===> go build sshsvc copy to $output"
|
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
|
fi
|
||||||
|
|
||||||
# =================== deb/rpm
|
# =================== deb/rpm
|
||||||
|
|||||||
Reference in New Issue
Block a user