diff --git a/apps/iycms/3.3.44/config/config.conf b/apps/iycms/3.3.44/config/config.conf new file mode 100644 index 00000000..4e1502fe --- /dev/null +++ b/apps/iycms/3.3.44/config/config.conf @@ -0,0 +1,14 @@ +{ + "dbType": 0, + "dbHost": "", + "dbName": "", + "dbUser": "", + "dbPassword": "", + "dbPort": 0, + "backendPort": 21007, + "openHttp": true, + "httpPort": 80, + "openHttps": true, + "httpsPort": 443, + "env": "" +} diff --git a/apps/iycms/3.3.44/docker-compose.yml b/apps/iycms/3.3.44/docker-compose.yml index 11d01bb7..35f0ca85 100644 --- a/apps/iycms/3.3.44/docker-compose.yml +++ b/apps/iycms/3.3.44/docker-compose.yml @@ -18,4 +18,4 @@ services: - ${PANEL_APP_PORT_ADMIN}:21007 volumes: - ${IYCMS_ROOT_PATH}/data:/app/iycms/data - - ${IYCMS_ROOT_PATH}/config.conf:/app/iycms/config.conf + - ${IYCMS_ROOT_PATH}/config/config.conf:/app/iycms/config.conf diff --git a/apps/iycms/3.3.44/scripts/init.sh b/apps/iycms/3.3.44/scripts/init.sh index 77b84912..96411a4f 100644 --- a/apps/iycms/3.3.44/scripts/init.sh +++ b/apps/iycms/3.3.44/scripts/init.sh @@ -8,6 +8,10 @@ if [ -f .env ]; then sed -i '/^ENV_FILE=/d' .env echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + if [ ! -d ${IYCMS_ROOT_PATH}/config ]; then + cp -r ./config ${IYCMS_ROOT_PATH}/config + fi + echo "Check Finish." else diff --git a/apps/iycms/3.3.44/scripts/upgrade.sh b/apps/iycms/3.3.44/scripts/upgrade.sh index 77b84912..96411a4f 100644 --- a/apps/iycms/3.3.44/scripts/upgrade.sh +++ b/apps/iycms/3.3.44/scripts/upgrade.sh @@ -8,6 +8,10 @@ if [ -f .env ]; then sed -i '/^ENV_FILE=/d' .env echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + if [ ! -d ${IYCMS_ROOT_PATH}/config ]; then + cp -r ./config ${IYCMS_ROOT_PATH}/config + fi + echo "Check Finish." else