1
0
mirror of https://github.com/rancher/os.git synced 2025-09-02 15:24:32 +00:00

Add docker Bash completion for other consoles

This commit is contained in:
hailong
2019-01-02 02:56:27 +00:00
committed by niusmallnan
parent 8cdf21d03a
commit 4d834140d0
3 changed files with 26 additions and 5 deletions

View File

@@ -144,6 +144,12 @@ func consoleInitFunc() error {
{"/usr/share/ros/os-release", "/etc/os-release"},
}
if _, err := os.Stat(dockerCompletionFile); err == nil {
baseSymlink = append(baseSymlink, symlink{
dockerCompletionFile, dockerCompletionLinkFile,
})
}
if cfg.Rancher.Console == "default" {
// add iptables symlinks for default console
baseSymlink = append(baseSymlink, []symlink{