Skip to content

Commit

Permalink
fix pk bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cuisongliu committed Aug 15, 2019
1 parent 8dbadda commit f3cc194
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func init() {
// Here you will define your flags and configuration settings.
installCmd.Flags().StringVar(&command.User, "user", "root", "servers user name for ssh")
installCmd.Flags().StringVar(&command.Passwd, "passwd", "admin", "servers user password for ssh")
installCmd.Flags().StringVar(&command.PrivateKeyFile, "pk", "/root/.ssh/id_rsa", "servers user private key file for ssh")
installCmd.Flags().StringVar(&command.PrivateKeyFile, "pk", "", "servers user private key file for ssh")

installCmd.Flags().StringSliceVar(&install.Hosts, "host", []string{}, "container install hosts")
installCmd.Flags().StringSliceVar(&command.RegistryArr, "registry", []string{"127.0.0.1"}, "container's registry ip")
Expand Down
2 changes: 1 addition & 1 deletion cmd/uninstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func init() {
rootCmd.AddCommand(uninstallCmd)
uninstallCmd.Flags().StringVar(&command.User, "user", "root", "servers user name for ssh")
uninstallCmd.Flags().StringVar(&command.Passwd, "passwd", "admin", "servers user password for ssh")
uninstallCmd.Flags().StringVar(&command.PrivateKeyFile, "pk", "/root/.ssh/id_rsa", "servers user private key file for ssh")
uninstallCmd.Flags().StringVar(&command.PrivateKeyFile, "pk", "", "servers user private key file for ssh")

uninstallCmd.Flags().StringSliceVar(&install.Hosts, "host", []string{}, "install hosts")
uninstallCmd.Flags().StringVar(&command.Lib, "lib", "", "store location,default : docker is /var/lib/docker , containerd is /var/lib/containerd ")
Expand Down

0 comments on commit f3cc194

Please sign in to comment.