commit message from python script

This commit is contained in:
2023-04-11 17:21:50 +02:00
parent d0b783c5fc
commit 237aa7ff31
9 changed files with 57 additions and 1 deletions

View File

@@ -50,7 +50,7 @@ def create_scripts_startup(script_folder = str):
try:
script_file = script_folder + "/ssh-agent-shartup.sh"
with open(file=script_file, mode="w" ) as script:
print("""#!/bin/sh\n[ -z "$SSH_AGENT_PID" ] || eval "$(ssh-agent -s)"\nSSH_ASKPASS=/usr/bin/ksshaskpass\nexport SSH_ASKPASS""", file=script)
print("""#!/bin/sh\n[ -n "$SSH_AGENT_PID" ] || eval "$(ssh-agent -s)"\nSSH_ASKPASS=/usr/bin/ksshaskpass\nexport SSH_ASKPASS""", file=script)
os.chmod(path=script_file, mode=stat.S_IRWXU)
except:
raise PermissionError("Keine Rechte die Datei " + script_file + " zu erstellen")