Gitlab

如何強制 gitlab-ctl 顯示安裝類型提示?

  • August 24, 2016

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 顯示安裝類型提示?

該菜單與後綴有關。一旦執行sudo apt-get purge --auto-remove postfixgitlab-ctl reconfigure菜單就會出現。

引用自:https://serverfault.com/questions/798777