Skip to content

Commit f3cc194

Browse files
committed
fix pk bug
1 parent 8dbadda commit f3cc194

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/install.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func init() {
3737
// Here you will define your flags and configuration settings.
3838
installCmd.Flags().StringVar(&command.User, "user", "root", "servers user name for ssh")
3939
installCmd.Flags().StringVar(&command.Passwd, "passwd", "admin", "servers user password for ssh")
40-
installCmd.Flags().StringVar(&command.PrivateKeyFile, "pk", "/root/.ssh/id_rsa", "servers user private key file for ssh")
40+
installCmd.Flags().StringVar(&command.PrivateKeyFile, "pk", "", "servers user private key file for ssh")
4141

4242
installCmd.Flags().StringSliceVar(&install.Hosts, "host", []string{}, "container install hosts")
4343
installCmd.Flags().StringSliceVar(&command.RegistryArr, "registry", []string{"127.0.0.1"}, "container's registry ip")

cmd/uninstall.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func init() {
3535
rootCmd.AddCommand(uninstallCmd)
3636
uninstallCmd.Flags().StringVar(&command.User, "user", "root", "servers user name for ssh")
3737
uninstallCmd.Flags().StringVar(&command.Passwd, "passwd", "admin", "servers user password for ssh")
38-
uninstallCmd.Flags().StringVar(&command.PrivateKeyFile, "pk", "/root/.ssh/id_rsa", "servers user private key file for ssh")
38+
uninstallCmd.Flags().StringVar(&command.PrivateKeyFile, "pk", "", "servers user private key file for ssh")
3939

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

0 commit comments

Comments
 (0)