Mount pCloud with turnstile rclone service

This commit is contained in:
Fabio Scotto di Santolo
2026-04-19 09:06:57 +02:00
parent 2fd894d2b0
commit 7c36681242
5 changed files with 69 additions and 2 deletions

View File

@@ -0,0 +1,3 @@
#!/bin/sh
exec svlogd -tt ./main

View File

@@ -0,0 +1,33 @@
#!/bin/sh
set -eu
mountpoint="$HOME/Remotes/pCloud"
cache_dir="$HOME/.cache/rclone/pcloud"
config_path="$HOME/.config/rclone/rclone.conf"
mkdir -p "$cache_dir" "$mountpoint"
if mountpoint -q "$mountpoint"; then
exit 0
fi
if [ -n "${TURNSTILE_ENV_DIR:-}" ]; then
exec chpst -e "$TURNSTILE_ENV_DIR" rclone mount \
pcloud: "$mountpoint" \
--config "$config_path" \
--cache-dir "$cache_dir" \
--vfs-cache-mode writes \
--dir-cache-time 10m \
--poll-interval 1m \
--log-level INFO
fi
exec rclone mount \
pcloud: "$mountpoint" \
--config "$config_path" \
--cache-dir "$cache_dir" \
--vfs-cache-mode writes \
--dir-cache-time 10m \
--poll-interval 1m \
--log-level INFO

View File

@@ -11,7 +11,7 @@
org-return-follows-link t
org-startup-folded 'content
org-todo-keywords '((sequence "🆕(t)" "▶️(s)" "⏳(w)" "🔎(p)" "|" "✅(d)" "🗑(c)" "👨(g)"))
org-export-backends '(html latex odt markdown ascii icalendar)
org-export-backends '(html latex odt md ascii icalendar)
org-latex-pdf-process '("pdflatex -interaction nonstopmode %f"
"pdflatex -interaction nonstopmode %f")
org-latex-default-class "article"
@@ -44,7 +44,7 @@
;; Setting default directory for Org files
(setq org-directory "~/Remotes/pCloud/Org")
(setq org-directory "~/Org")
(provide 'org)