+
Skip to content

安装脚本每次都启动 #43

@buzhangjiuzhou

Description

@buzhangjiuzhou

无论TYPECHO_INSTALL设为0还是1,或者注释掉,安装脚本都会启动。

我之前用的自己生成的镜像,后来迁移过来了,但是映射的目录是/app而不是/app/usr,最近发现这导致我用的版本还是之前的,于是准备改成/app/usr,然后就遇到了这个问题。

通过查看typoecho的index.php代码发现似乎会判断config.inc.php

/** 载入配置支持 */ if (!defined('__TYPECHO_ROOT_DIR__') && !@include_once 'config.inc.php') { file_exists('./install.php') ? header('Location: install.php') : print('Missing Config File'); exit; }

然后我手动把我之前的config.inc.php文件复制到容器内的/app目录下面就没有这个问题了,但是有时候重启容器还是有,于是我把这个文件挂载过去,现在也不启动安装脚本了。

但是我不确定是哪里有问题?是否应该更新这里的volume信息?又或者是怎么阻止这里install.php的启动?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载