代码拉取完成,页面将自动刷新
同步操作将从 gybf8f8f8/人大金仓-kingbase-es-v8-r6-docker 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/sh
DB_PATH=/home/kingbase
DATA_DIR=/home/kingbase/data
LOG_FILE=${DB_PATH}/logfile
PWD_FILE=${DB_PATH}/password
check_is_init() {
declare -g DATABASE_ALREADY_EXISTS
if [ -d "${DATA_DIR}" -a `ls -A ${DATA_DIR}|wc -w` -ne 0 ];then
DATABASE_ALREADY_EXISTS='true'
fi
}
db_init(){
mkdir -p ${DATA_DIR}
chown -R kingbase:kingbase ${DATA_DIR}
echo ${SYSTEM_PWD-123456} > ${PWD_FILE}
cd ${DB_PATH}/Server/bin/
initdb --help
if [ "${CASE_SENSITIVE}" = "YES" ] || [ "${CASE_SENSITIVE}" = "1" ];then
caseSensitiveMode=""
elif [ "${CASE_SENSITIVE}" = "NO" ] || [ "${CASE_SENSITIVE}" = "0" ];then
caseSensitiveMode="--enable-ci"
else
echo "case sensitive param wrong"
exit 2
fi
./initdb -U${SYSTEM_USER-system} --pwfile=${PWD_FILE} --encoding=${ENCODING-UTF8} ${DATA_DIR} -m${DATABASE_MODE-ORACLE} --block-size=${BLOCK_SIZE-8} ${caseSensitiveMode}
}
check_is_init
if [ -z "${DATABASE_ALREADY_EXISTS}" ];then
db_init
if [ $? -ne 0 ];then
echo "initdb failed"
exit 1
fi
fi
if [ -f "${DB_PATH}/Server/bin/license.dat" ];then
cp ${DB_PATH}/Server/bin/license.dat ${DB_PATH}/
fi
${DB_PATH}/Server/bin/sys_ctl -D ${DATA_DIR} -l ${LOG_FILE} start
sleep 15
exec tail -f ${LOG_FILE}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。