Browse Source

fix creation of service file

sshtunnel
Christian Rotzoll 6 years ago
parent
commit
29327b313d
  1. 4
      home.admin/config.scripts/internet.sshtunnel.py

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

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

Loading…
Cancel
Save