set ssh enabled in ssh helper script

This commit is contained in:
Comma Device
2023-05-15 19:32:40 -07:00
parent f327053ac0
commit b7daab0ee0

View File

@@ -14,8 +14,10 @@ if __name__ == "__main__":
keys = requests.get(f"https://github.com/{username}.keys", timeout=10)
if keys.status_code == 200:
Params().put("GithubSshKeys", keys.text)
Params().put("GithubUsername", username)
params = Params()
params.put_bool("SshEnabled", True)
params.put("GithubSshKeys", keys.text)
params.put("GithubUsername", username)
print("Setup ssh keys successfully")
else:
print("Error getting public keys from github")