Skip to content

Commit b841aec

Browse files
committed
fix(stacks): build mariadb error
1 parent 3419ea7 commit b841aec

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

stacks/mariadb/build.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ function build() {
1010

1111
# Generate binary
1212
curl -sSL "https://archive.mariadb.org/mariadb-${STACK_VERSION}/source/mariadb-${STACK_VERSION}.tar.gz" | tar -xz && \
13+
echo "running building..."
1314
cd mariadb-"${STACK_VERSION}" && \
1415
cmake . -DCMAKE_INSTALL_PREFIX=/opt/drycc/mariadb \
1516
-DMYSQL_DATADIR=/opt/drycc/mariadb/data \
@@ -24,13 +25,13 @@ function build() {
2425
-DDEFAULT_CHARSET=utf8 \
2526
-DDEFAULT_COLLATION=utf8_general_ci \
2627
&& \
27-
make install/strip
28-
28+
make install/strip 2>&1 >/dev/null
29+
echo "build mariadb ok..."
2930
mkdir -p "${PROFILE_DIR}"
3031
cat << EOF > "${PROFILE_DIR}/${STACK_NAME}.sh"
3132
export PATH="/opt/drycc/mariadb/bin:\$PATH"
3233
EOF
33-
34+
echo "generate profile ok..."
3435
cp -rf /opt/drycc/mariadb/* "${DATA_DIR}"
3536
}
3637

0 commit comments

Comments
 (0)