aboutsummaryrefslogtreecommitdiff
path: root/scripts/p7s
diff options
context:
space:
mode:
authoralex <alex@pdp7.net>2024-03-26 00:06:32 +0100
committeralex <alex@pdp7.net>2024-03-26 00:06:32 +0100
commitcf8c7b248f9c225e25760cc215bf44b50679f1fc (patch)
tree57a90913f2e0eebc7a84b0763b9ae773e49c9161 /scripts/p7s
parente3d4b64d7e255657ac8bfa9690ba0cfa8a5a9115 (diff)
Add Nextcloud flatpak setup
Diffstat (limited to 'scripts/p7s')
-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)