代码拉取完成,页面将自动刷新
同步操作将从 腾讯云(北京)有限责任公司/TXSQL 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
if [ $# -lt 1 ]
then
echo "usage: ./post-install.sh <installation-dir-full-path>"
exit 0;
fi
is_ci="0"
#cur=`pwd`
if [ $# -ge 2 ];then
is_ci=$2
fi
echo $is_ci
mkdir -p $1
env_info="x86_64"
is_arm=`uname -a | grep aarch64 | head -n1 | wc -l `
#is_arm=0
echo "is_arm:$is_arm"
if [ $is_arm != "0" ];then
env_info="arm"
fi
#cp ./percona_strip.sh $1
cp -r ./install $1
cp -rf mysql_install/percona-5.7.17/* $1
mkdir $1/xtrabackup -p
mkdir -p $1/share_lib $1/.run_so $1/etc
#the xtrabackup dir must be at ../
if [ ! -d "$1/install/tool" ]; then
mkdir -p $1/install/tool
fi
cp -r ./env_depend/${env_info}/xtrabackup/* $1/xtrabackup
cp ./env_depend/${env_info}/lib/* $1/share_lib
cp ./env_depend/${env_info}/mysqldeptool/* $1/install
cp ./env_depend/${env_info}/mysqldeptool/tool/* $1/install/tool
cp ./env_depend/${env_info}/mysqldeptool/gtid/* $1/install
#cd install dir
cd $1
cd ./bin
#make sure the built binaries have exe modes.
ls |while read f ; do chmod 0755 $f ; done
cd ../install
ls |while read f ; do chmod -R 0755 $f ; done
#cp libjemalloc.so.3.6.0 ../.run_so
# these files must also exist in install/ dir, comm.sh need them.
#cp keyring_udf.so ../lib/mysql/plugin
cd ../xtrabackup
ls |while read f ; do chmod 0755 $f ; done
cd ..
mkdir log -p
if [ $is_ci != "0" ];then
cp -r bin ../bin-symbol
cp -r lib ../lib-symbol
cp -r xtrabackup ../xtrabackup-symbol
strip -gs bin/*
strip -gs lib/*
strip -gs install/*
strip -gs xtrabackup/*
rm -rf mysql-test
fi
rm include -rf
rm sql-bench -rf
rm lib/lib* -f
rm install/runtime.err -f
cur=`pwd`
cd bin;rm -rf aria_* innochecksum myisam* tokuft* wsrep_sst* msql2mysql mysqlaccess mysql_convert_table_format mysqld_multi mysql_find_rows mysql_fix_extensions mysqlhotcopy mysql_setpermission mysql_waitpid mysql_zap replace
cd $cur
#rm lib/plugin/ha_xtradb.so
rm lib/plugin/feedback.so -f
rm lib/plugin/ha_spider.so -f
rm lib/plugin/handlersocket.so -f
rm lib/plugin/ha_mroonga.so -f
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。