summaryrefslogtreecommitdiff
path: root/scripts/p7s/nextcloud.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/p7s/nextcloud.py')
-rwxr-xr-xscripts/p7s/nextcloud.py5
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)