Skip to content

Commit 2c15463

Browse files
committed
chore(stacks): change mysql buid path
1 parent 933e3d9 commit 2c15463

1 file changed

Lines changed: 34 additions & 34 deletions

File tree

stacks/mysql/build.sh

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function build() {
1010
MYSQL_VERSION=$STACK_VERSION
1111
MYSQL_MAJOR=$(echo "${MYSQL_VERSION}"|cut -d"." -f1-2)
1212

13-
mkdir -p /opt/drycc/mysql-${MYSQL_MAJOR}/
13+
mkdir -p /opt/drycc/mysql
1414

1515
# computer cpu numbers
1616
numcpu=$(cat /proc/cpuinfo | grep processor | wc -l)
@@ -40,44 +40,44 @@ function build() {
4040
tar --no-same-owner -xf mysql-${MYSQL_VERSION}.tar.gz
4141
cd mysql-${MYSQL_VERSION}
4242

43-
cmake -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/tmp/boost/ -DBUILD_CONFIG=mysql_release -DWITH_AUTHENTICATION_LDAP=1 -DCMAKE_INSTALL_PREFIX=/opt/drycc/mysql-${MYSQL_MAJOR} -DSYSCONFDIR=/opt/drycc/mysql-${MYSQL_MAJOR}/conf -DDEFAULT_SYSCONFDIR=/opt/drycc/mysql-${MYSQL_MAJOR}/conf -DFORCE_INSOURCE_BUILD=1
43+
cmake -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/tmp/boost/ -DBUILD_CONFIG=mysql_release -DWITH_AUTHENTICATION_LDAP=1 -DCMAKE_INSTALL_PREFIX=/opt/drycc/mysql -DSYSCONFDIR=/opt/drycc/mysql/conf -DDEFAULT_SYSCONFDIR=/opt/drycc/mysql/conf -DFORCE_INSOURCE_BUILD=1
4444
make --jobs=$numcpu
4545
make install --jobs=$numcpu
4646
make clean
47-
strip /opt/drycc/mysql-${MYSQL_MAJOR}/bin/comp_err
48-
strip /opt/drycc/mysql-${MYSQL_MAJOR}/bin/ibd2sdi
49-
strip /opt/drycc/mysql-${MYSQL_MAJOR}/bin/innochecksum
50-
strip /opt/drycc/mysql-${MYSQL_MAJOR}/bin/lz4_decompress
51-
strip /opt/drycc/mysql-${MYSQL_MAJOR}/bin/my_print_defaults
52-
strip /opt/drycc/mysql-${MYSQL_MAJOR}/bin/myisam_ftdump
53-
strip /opt/drycc/mysql-${MYSQL_MAJOR}/bin/myisamchk
54-
strip /opt/drycc/mysql-${MYSQL_MAJOR}/bin/myisamlog
55-
strip /opt/drycc/mysql-${MYSQL_MAJOR}/bin/myisampack
56-
strip /opt/drycc/mysql-${MYSQL_MAJOR}/bin/mysql
57-
strip /opt/drycc/mysql-${MYSQL_MAJOR}/bin/mysql_config_editor
58-
strip /opt/drycc/mysql-${MYSQL_MAJOR}/bin/mysql_migrate_keyring
59-
strip /opt/drycc/mysql-${MYSQL_MAJOR}/bin/mysql_secure_installation
60-
strip /opt/drycc/mysql-${MYSQL_MAJOR}/bin/mysql_ssl_rsa_setup
61-
strip /opt/drycc/mysql-${MYSQL_MAJOR}/bin/mysql_tzinfo_to_sql
62-
strip /opt/drycc/mysql-${MYSQL_MAJOR}/bin/mysql_upgrade
63-
strip /opt/drycc/mysql-${MYSQL_MAJOR}/bin/mysqladmin
64-
strip /opt/drycc/mysql-${MYSQL_MAJOR}/bin/mysqlbinlog
65-
strip /opt/drycc/mysql-${MYSQL_MAJOR}/bin/mysqlcheck
66-
strip /opt/drycc/mysql-${MYSQL_MAJOR}/bin/mysqld
67-
strip /opt/drycc/mysql-${MYSQL_MAJOR}/bin/mysqldump
68-
strip /opt/drycc/mysql-${MYSQL_MAJOR}/bin/mysqlimport
69-
strip /opt/drycc/mysql-${MYSQL_MAJOR}/bin/mysqlpump
70-
strip /opt/drycc/mysql-${MYSQL_MAJOR}/bin/mysqlrouter
71-
strip /opt/drycc/mysql-${MYSQL_MAJOR}/bin/mysqlrouter_keyring
72-
strip /opt/drycc/mysql-${MYSQL_MAJOR}/bin/mysqlrouter_passwd
73-
strip /opt/drycc/mysql-${MYSQL_MAJOR}/bin/mysqlrouter_plugin_info
74-
strip /opt/drycc/mysql-${MYSQL_MAJOR}/bin/mysqlshow
75-
strip /opt/drycc/mysql-${MYSQL_MAJOR}/bin/mysqlslap
76-
strip /opt/drycc/mysql-${MYSQL_MAJOR}/bin/perror
77-
strip /opt/drycc/mysql-${MYSQL_MAJOR}/bin/zlib_decompress
47+
strip /opt/drycc/mysql/bin/comp_err
48+
strip /opt/drycc/mysql/bin/ibd2sdi
49+
strip /opt/drycc/mysql/bin/innochecksum
50+
strip /opt/drycc/mysql/bin/lz4_decompress
51+
strip /opt/drycc/mysql/bin/my_print_defaults
52+
strip /opt/drycc/mysql/bin/myisam_ftdump
53+
strip /opt/drycc/mysql/bin/myisamchk
54+
strip /opt/drycc/mysql/bin/myisamlog
55+
strip /opt/drycc/mysql/bin/myisampack
56+
strip /opt/drycc/mysql/bin/mysql
57+
strip /opt/drycc/mysql/bin/mysql_config_editor
58+
strip /opt/drycc/mysql/bin/mysql_migrate_keyring
59+
strip /opt/drycc/mysql/bin/mysql_secure_installation
60+
strip /opt/drycc/mysql/bin/mysql_ssl_rsa_setup
61+
strip /opt/drycc/mysql/bin/mysql_tzinfo_to_sql
62+
strip /opt/drycc/mysql/bin/mysql_upgrade
63+
strip /opt/drycc/mysql/bin/mysqladmin
64+
strip /opt/drycc/mysql/bin/mysqlbinlog
65+
strip /opt/drycc/mysql/bin/mysqlcheck
66+
strip /opt/drycc/mysql/bin/mysqld
67+
strip /opt/drycc/mysql/bin/mysqldump
68+
strip /opt/drycc/mysql/bin/mysqlimport
69+
strip /opt/drycc/mysql/bin/mysqlpump
70+
strip /opt/drycc/mysql/bin/mysqlrouter
71+
strip /opt/drycc/mysql/bin/mysqlrouter_keyring
72+
strip /opt/drycc/mysql/bin/mysqlrouter_passwd
73+
strip /opt/drycc/mysql/bin/mysqlrouter_plugin_info
74+
strip /opt/drycc/mysql/bin/mysqlshow
75+
strip /opt/drycc/mysql/bin/mysqlslap
76+
strip /opt/drycc/mysql/bin/perror
77+
strip /opt/drycc/mysql/bin/zlib_decompress
7878

7979
# copy mysql build files to data dir
80-
cp -r /opt/drycc/mysql-${MYSQL_MAJOR}/ ${DATA_DIR}/
80+
cp -r /opt/drycc/mysql/ ${DATA_DIR}/
8181

8282
# clean tmp data
8383
cd .. && rm -rf mysql-${MYSQL_VERSION} mysql-${MYSQL_VERSION}.tar.gz

0 commit comments

Comments
 (0)