From cf8c7b248f9c225e25760cc215bf44b50679f1fc Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 26 Mar 2024 00:06:32 +0100 Subject: [PATCH] Add Nextcloud flatpak setup --- scripts/p7s/nextcloud.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/p7s/nextcloud.py b/scripts/p7s/nextcloud.py index 8aed832..e8c626f 100755 --- a/scripts/p7s/nextcloud.py +++ b/scripts/p7s/nextcloud.py @@ -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) -- 2.47.3