appstore-1panel/apps/oceanbase/4.2.1/scripts/init.sh
Rongfeng Fu b12b858fe5
feat: support oceanbase-ce (#1180)
* feat: support oceanbase-ce

* chore: update version to 4.2.1

---------

Co-authored-by: 玉楼 <rongfeng.frf@alibaba-inc.com>
2024-04-02 15:37:36 +08:00

15 lines
472 B
Bash

source ./.env
LOG='./init.log'
mkdir -p $PWD/data/.obd 2>&1 >> $LOG || exit 11
if [ "x$OB_INSTALL_PATH" != "x" ]; then
HOME_PATH="$OB_INSTALL_PATH/ob/$CONTAINER_NAME"
echo "link $HOME_PATH to $PWD/data/ob" >> $LOG
mkdir -p $HOME_PATH 2>&1 >> $LOG || exit 10
ln -sf $HOME_PATH ./data/ob 2>&1 >> $LOG || exit 12
echo "HOME_PATH=$HOME_PATH" >> ./.env
else
mkdir -p $PWD/data/ob 2>&1 >> $LOG || exit 10
echo "install path not set" >> $LOG
fi