]> xn--ix-yja.es Git - alex.git/commitdiff
Add Nextcloud flatpak setup
authoralex <alex@pdp7.net>
Mon, 25 Mar 2024 23:06:32 +0000 (00:06 +0100)
committeralex <alex@pdp7.net>
Mon, 25 Mar 2024 23:06:32 +0000 (00:06 +0100)
scripts/p7s/nextcloud.py

index 8aed8329774c2c1acdbea48a3be3a99458688f98..e8c626fe6c5a99d0772d0b891469259d8ab72a9d 100755 (executable)
@@ -11,8 +11,6 @@ def setup_nextcloud():
 
     home = pathlib.Path.home().absolute()
 
-    assert args.style != "flatpak", "flatpak not implemented yet"
-
     if args.style == "rclone":
         if not (home / ".config" / "rclone" / "rclone.conf").exists():
             print("Visit https://nextcloud.pdp7.net/nextcloud/index.php/settings/user/security , create an app password")
@@ -35,6 +33,9 @@ def setup_nextcloud():
         """).lstrip())
 
         subprocess.run(["systemctl", "--user", "enable", "--now", "nextcloud"], check=True)
+    elif args.style == "flatpak":
+        subprocess.run(["flatpak", "install", "com.nextcloud.desktopclient.nextcloud"], check=True)
+        input("complete the setup")
 
     if not (home / ".ssh").exists():
         subprocess.run(["ln", "-s", home / "Nextcloud" / "_ssh", home / ".ssh"], check=True)