Browse Source

fix test path

sshtunnel
Christian Rotzoll 6 years ago
parent
commit
6d16b9f5e7
  1. 2
      home.admin/config.scripts/internet.sshtunnel.py

2
home.admin/config.scripts/internet.sshtunnel.py

@ -101,7 +101,7 @@ if sys.argv[1] == "on":
# check if SSH keys for root user need to be created
print()
print("*** Checking root SSH keys")
if Path("/home/root/.ssh/id_rsa.pub").exists() == False:
if Path("/root/.ssh/id_rsa.pub").exists() == False:
print("Generating root SSH keys ...")
subprocess.call("sudo -u root ssh-keygen -b 2048 -t rsa -f ~/.ssh/id_rsa -q -N \"\"", shell=True)
print("DONE")

Loading…
Cancel
Save