如何强制 gitlab-ctl 显示安装类型提示?

如何强制 gitlab-ctl 显示安装类型提示?

gitlab-ctl reconfigure首次运行时,会显示一个菜单。我想选择其他设置,但再次运行该命令时,它会立即启动而不显示菜单:

root@host:~# gitlab-ctl reconfigure
Starting Chef Client, version 12.12.15
resolving cookbooks for run list: ["gitlab"]
Synchronizing Cookbooks:
  - runit (0.14.2)
  - package (0.0.0)
  - gitlab (0.0.1)
Installing Cookbook Gems:
Compiling Cookbooks...
Recipe: gitlab::default
  * directory[/etc/gitlab] action create (up to date)
/sbin/init: unrecognized option '--version'
-.mount

运行 help 子命令会显示以下选项:

root@host:~# gitlab-ctl help
/opt/gitlab/embedded/bin/omnibus-ctl: command (subcommand)
deploy-page
  Put up the deploy page
remove-accounts
  Delete *all* users and groups used by this package
upgrade
  Run migrations after a package upgrade
General Commands:
  cleanse
    Delete *all* gitlab data, and start from scratch.
  help
    Print this help message.
  reconfigure
    Reconfigure the application.
  show-config

我已经删除了 gitlab 包,运行cleansedeploy-page up,但我无法再次强制提示。如何强制 gitlab-ctl 显示安装类型提示?

答案1

菜单与 Postfix 相关。一旦sudo apt-get purge --auto-remove postfix运行,gitlab-ctl reconfigure菜单就会出现。

相关内容