mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-19 19:23:58 +08:00
set ssh enabled in ssh helper script
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user