9 lines
347 B
Python
9 lines
347 B
Python
#!/usr/bin/env python3
|
|
"""Upload only provisioning code; generated private keys remain on the server."""
|
|
from pathlib import Path
|
|
import subprocess
|
|
import sys
|
|
|
|
script = Path(__file__).with_name('setup-push-remote.py').read_bytes()
|
|
raise SystemExit(subprocess.run(['ssh', '-o', 'BatchMode=yes', sys.argv[1], 'python3 -'], input=script).returncode)
|