]> xn--ix-yja.es Git - alex.git/commitdiff
Symlink .ssh
authoralex <alex@pdp7.net>
Sat, 1 Apr 2023 15:52:30 +0000 (17:52 +0200)
committeralex <alex@pdp7.net>
Sat, 1 Apr 2023 15:52:30 +0000 (17:52 +0200)
workstation/setup.py

index 25aa20393e0a06e5cdc372754483ffba745e7588..2bf53fcd27d0c4ab9965b4f9e73cf71069e973b0 100755 (executable)
@@ -39,3 +39,6 @@ with open(nextcloud_service_path, "w", encoding="utf8") as f:
     """))
 
 subprocess.run(["systemctl", "--user", "enable", "--now", "nextcloud"], check=True)
+
+if not pathlib.Path(".ssh").exists():
+    subprocess.run(["ln", "-s", "Nextcloud/_ssh", ".ssh"], check=True)