diff options
| author | alex <alex@pdp7.net> | 2024-03-26 00:06:32 +0100 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2024-03-26 00:06:32 +0100 |
| commit | cf8c7b248f9c225e25760cc215bf44b50679f1fc (patch) | |
| tree | 57a90913f2e0eebc7a84b0763b9ae773e49c9161 | |
| parent | e3d4b64d7e255657ac8bfa9690ba0cfa8a5a9115 (diff) | |
Add Nextcloud flatpak setup
| -rwxr-xr-x | scripts/p7s/nextcloud.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/p7s/nextcloud.py b/scripts/p7s/nextcloud.py index 8aed8329..e8c626fe 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) |
