爱影CMS 测试

Signed-off-by: 萌森 <qyg2297248353@163.com>
This commit is contained in:
萌森 2024-08-13 18:24:32 +08:00
parent 2cdc2bf4e0
commit ef5e567519
2 changed files with 20 additions and 2 deletions

View File

@ -9,7 +9,16 @@ if [ -f .env ]; then
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
if [ ! -d "$IYCMS_ROOT_PATH/config" ]; then if [ ! -d "$IYCMS_ROOT_PATH/config" ]; then
cp -r ./config "$IYCMS_ROOT_PATH/config" mkdir -p "$IYCMS_ROOT_PATH/config"
fi
if [ -d "$IYCMS_ROOT_PATH/config/config.conf" ]; then
rm -r "$IYCMS_ROOT_PATH/config/config.conf"
touch "$IYCMS_ROOT_PATH/config/config.conf"
elif [ ! -f "$IYCMS_ROOT_PATH/config/config.conf" ]; then
cp ./config/config.conf "$IYCMS_ROOT_PATH/config/config.conf"
else
echo "config.conf cp error."
fi fi
echo "Check Finish." echo "Check Finish."

View File

@ -9,7 +9,16 @@ if [ -f .env ]; then
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
if [ ! -d "$IYCMS_ROOT_PATH/config" ]; then if [ ! -d "$IYCMS_ROOT_PATH/config" ]; then
cp -r ./config "$IYCMS_ROOT_PATH/config" mkdir -p "$IYCMS_ROOT_PATH/config"
fi
if [ -d "$IYCMS_ROOT_PATH/config/config.conf" ]; then
rm -r "$IYCMS_ROOT_PATH/config/config.conf"
touch "$IYCMS_ROOT_PATH/config/config.conf"
elif [ ! -f "$IYCMS_ROOT_PATH/config/config.conf" ]; then
cp ./config/config.conf "$IYCMS_ROOT_PATH/config/config.conf"
else
echo "config.conf cp error."
fi fi
echo "Check Finish." echo "Check Finish."