Browse Source

sudo file write

sshtunnel
Christian Rotzoll 6 years ago
parent
commit
7d8b7c7bfc
  1. 3
      home.admin/config.scripts/internet.sshtunnel.py

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

@ -95,9 +95,10 @@ if sys.argv[1] == "on":
print(service_data)
# write service file
service_file = open(SERVICEFILE, "w")
service_file = open("./temp.service", "w")
service_file.write(service_data)
service_file.close()
subprocess.call("sudo mv ./temp.service SERVICEFILE", shell=True)
# check if SSH keys for root user need to be created
print()

Loading…
Cancel
Save