From 40fe10c75ab4663c2b11d6a4afb6de1b4b569c6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=8C=E6=A3=AE?= Date: Thu, 15 Aug 2024 18:06:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 萌森 --- apps/iycms/3.3.44.1/data.yml | 25 ++++++++++++++++++++++++ apps/iycms/3.3.44.1/docker-compose.yml | 23 ++++++++++++++++++++++ apps/iycms/3.3.44.1/scripts/init.sh | 15 ++++++++++++++ apps/iycms/3.3.44.1/scripts/uninstall.sh | 10 ++++++++++ apps/iycms/3.3.44.1/scripts/upgrade.sh | 15 ++++++++++++++ 5 files changed, 88 insertions(+) create mode 100644 apps/iycms/3.3.44.1/data.yml create mode 100644 apps/iycms/3.3.44.1/docker-compose.yml create mode 100644 apps/iycms/3.3.44.1/scripts/init.sh create mode 100644 apps/iycms/3.3.44.1/scripts/uninstall.sh create mode 100644 apps/iycms/3.3.44.1/scripts/upgrade.sh diff --git a/apps/iycms/3.3.44.1/data.yml b/apps/iycms/3.3.44.1/data.yml new file mode 100644 index 00000000..245e890e --- /dev/null +++ b/apps/iycms/3.3.44.1/data.yml @@ -0,0 +1,25 @@ +additionalProperties: + formFields: + - default: "/home/iycms" + edit: true + envKey: IYCMS_ROOT_PATH + labelZh: 数据持久化路径 + labelEn: Data persistence path + required: true + type: text + - default: 80 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelZh: WebUI 端口 + labelEn: WebUI port + required: true + rule: paramPort + type: number + - default: 21007 + edit: true + envKey: PANEL_APP_PORT_ADMIN + labelZh: 管理端口 + labelEn: Admin port + required: true + rule: paramPort + type: number diff --git a/apps/iycms/3.3.44.1/docker-compose.yml b/apps/iycms/3.3.44.1/docker-compose.yml new file mode 100644 index 00000000..18635e85 --- /dev/null +++ b/apps/iycms/3.3.44.1/docker-compose.yml @@ -0,0 +1,23 @@ +version: "3.8" + +networks: + 1panel-network: + external: true + +services: + iycms: + image: qyg2297248353/iycms:v3.3.44.1 + container_name: ${CONTAINER_NAME} + labels: + createdBy: "Apps" + restart: always + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:80 + - ${PANEL_APP_PORT_ADMIN}:21007 + env_file: + - /etc/1panel/envs/global.env + - ${ENV_FILE:-/etc/1panel/envs/default.env} + volumes: + - ${IYCMS_ROOT_PATH}/iycms:/app/iycms diff --git a/apps/iycms/3.3.44.1/scripts/init.sh b/apps/iycms/3.3.44.1/scripts/init.sh new file mode 100644 index 00000000..77b84912 --- /dev/null +++ b/apps/iycms/3.3.44.1/scripts/init.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/iycms/3.3.44.1/scripts/uninstall.sh b/apps/iycms/3.3.44.1/scripts/uninstall.sh new file mode 100644 index 00000000..c86c4fbc --- /dev/null +++ b/apps/iycms/3.3.44.1/scripts/uninstall.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/iycms/3.3.44.1/scripts/upgrade.sh b/apps/iycms/3.3.44.1/scripts/upgrade.sh new file mode 100644 index 00000000..77b84912 --- /dev/null +++ b/apps/iycms/3.3.44.1/scripts/upgrade.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi