From 3767157421964ac27da47c3d66a73e6282a31dfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=8C=E6=A3=AE?= Date: Tue, 13 Aug 2024 17:55:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=88=B1=E5=BD=B1CMS=20=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 萌森 --- apps/iycms/3.3.44/config/config.conf | 14 ++++++++++++++ apps/iycms/3.3.44/docker-compose.yml | 2 +- apps/iycms/3.3.44/scripts/init.sh | 4 ++++ apps/iycms/3.3.44/scripts/upgrade.sh | 4 ++++ 4 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 apps/iycms/3.3.44/config/config.conf 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