eust-w a60b252acf 🐛 Let a fresh portable install start its daemon on clean Ubuntu
The default log path /var/log/drosync.log is not writable by the service
account, and `install -d` left a new account's ~/.local and ~/.local/share
root-owned, so the fallback log failed too and the daemon exited on start.
Create missing parents for the service user and keep the default log beside
its private state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 17:08:41 +08:00

24 lines
1.3 KiB
Plaintext

# drosync runtime configuration, literal KEY=VALUE (NOT a shell script).
# Shared by drosync and drosync-daemon; auth and mapping remain CLI-managed.
# Preserve this file on upgrade. Paths must be absolute; no $HOME expansion.
DROSYNC_SECRET_FILE=/home/ubt/.local/share/drosync/device-token
DROSYNC_FILE_CONCURRENCY=4
DROSYNC_PUT_CONCURRENCY=4
DROSYNC_PART_CONCURRENCY=4
DROSYNC_MAPPING_CONCURRENCY=4
DROSYNC_HASH_CONCURRENCY=4
# The service account cannot write /var/log; keep the log beside its private state.
DROSYNC_LOG_PATH=/home/ubt/.local/share/drosync/drosync.log
# INFO: run/phase/file outcomes; DEBUG: request, part and hash diagnostics.
# Level changes take effect after a service restart with the same state/config.
DROSYNC_LOG_LEVEL=info
DROSYNC_LOG_MAX_BYTES=33554432
DROSYNC_LOG_KEEP_FILES=3
# Optional: DROSYNC_DATA_DIR=/absolute/private/data-directory
# Optional: DROSYNC_LOG_FALLBACK_PATH=/absolute/private/drosync.log
# Server/key: drosync auth --server ... --access-key-id ... --secret-stdin
# Source/space/prefix: drosync mapping add --help
# Retired: DROSYNC_SERVER_URL, DROSYNC_TOKEN, DROSYNC_BUCKET,
# DROSYNC_LOCAL_DIR, DROSYNC_REMOTE_PREFIX, UBT_SERVER/SPACE/KEY/LOCAL_DIR.
# HOME/XDG_DATA_HOME/XDG_CONFIG_HOME are OS environment settings, not file keys.