Initial commit
This commit is contained in:
12
update-keys
Executable file
12
update-keys
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import os
|
||||
import sys
|
||||
import subprocess
|
||||
|
||||
import config
|
||||
|
||||
keys = subprocess.check_output(["ssh", "git@{}".format(config.GITLAB_HOST), "-p", "{}".format(config.GITLAB_SSH_PORT), "cat", ".ssh/authorized_keys"])
|
||||
|
||||
with open("/home/git/.ssh/authorized_keys", "w") as ak:
|
||||
ak.write(keys)
|
Reference in New Issue
Block a user