diff --git a/installer/Dockerfile b/installer/Dockerfile index 8addc3628..aba4fa21a 100644 --- a/installer/Dockerfile +++ b/installer/Dockerfile @@ -65,5 +65,6 @@ RUN echo -n "${CRM_VERSION}" > /tmp/CRM_VERSION VOLUME [ "/opt/cordys/data", "/opt/cordys/logs", "/opt/cordys/conf" ] RUN chmod 755 /shells/*.sh +RUN chmod -R 755 /opt/cordys ENTRYPOINT ["sh", "/shells/start-all.sh"] \ No newline at end of file diff --git a/installer/shells/start-all.sh b/installer/shells/start-all.sh index 3339d07d3..a86888e40 100644 --- a/installer/shells/start-all.sh +++ b/installer/shells/start-all.sh @@ -1,6 +1,7 @@ #!/bin/bash # 启动 CORDYS CRM应用及其依赖服务(MySQL 和 Redis) +chmod -R 755 /opt/cordys # 日志函数 log_info() {