Allow override of SSH key glob (MR 2167)
This commit is contained in:
parent
5d3cbbdb86
commit
3c5effa0e7
|
@ -70,6 +70,7 @@ config_keys = ["aports",
|
|||
"nonfree_firmware",
|
||||
"nonfree_userland",
|
||||
"ssh_keys",
|
||||
"ssh_key_glob",
|
||||
"timezone",
|
||||
"ui",
|
||||
"ui_extras",
|
||||
|
@ -111,6 +112,7 @@ defaults = {
|
|||
"nonfree_userland": False,
|
||||
"port_distccd": "33632",
|
||||
"ssh_keys": False,
|
||||
"ssh_key_glob": "~/.ssh/id_*.pub",
|
||||
"timezone": "GMT",
|
||||
"ui": "weston",
|
||||
"ui_extras": False,
|
||||
|
|
|
@ -279,7 +279,7 @@ def copy_ssh_keys(args):
|
|||
if not args.ssh_keys:
|
||||
return
|
||||
keys = []
|
||||
for key in glob.glob(os.path.expanduser("~/.ssh/id_*.pub")):
|
||||
for key in glob.glob(os.path.expanduser(args.ssh_key_glob)):
|
||||
with open(key, "r") as infile:
|
||||
keys += infile.readlines()
|
||||
|
||||
|
|
Loading…
Reference in New Issue