diff --git a/.gitignore b/.gitignore index 619c28c..f043f1c 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ __pycache__/ .mnemazine/quarantine/ .mnemazine/backlog/ .mnemazine/owner-context.txt +.mnemazine/config.json .mnemazine/config.env .mnemazine/config.local.sh .mnemazine/.last-daily diff --git a/README.md b/README.md index 9934662..158340e 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,12 @@ asks where to put the `inbox/` (inside the repo or on the Desktop), and can deploy the Telegram bot to a VPS. Preview a run without touching anything: `MNEMAZINE_SETUP_DRYRUN=1 bash setup.sh`. +Update an existing clone: + +```bash +cd "$HOME/Desktop/Mnemazine" && git pull --ff-only && bash install.sh +``` + After installation, open this folder as an Obsidian vault: ```text diff --git a/README.ru.md b/README.ru.md index 82ff8bd..30cbd12 100644 --- a/README.ru.md +++ b/README.ru.md @@ -71,6 +71,12 @@ bash setup.sh # пошагово, с вопросами (куда кла (в репозитории или на рабочий стол), может задеплоить Telegram-бота на VPS. Прогон вхолостую без изменений: `MNEMAZINE_SETUP_DRYRUN=1 bash setup.sh`. +Обновить уже скачанный проект: + +```bash +cd "$HOME/Desktop/Mnemazine" && git pull --ff-only && bash install.sh +``` + После установки откройте эту папку как Obsidian-vault: ```text diff --git a/install.sh b/install.sh index c84d353..07ebdf4 100755 --- a/install.sh +++ b/install.sh @@ -3,6 +3,7 @@ set -euo pipefail # Default to where this script lives (the clone), not a hardcoded path. ROOT="${MNEMAZINE_ROOT:-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}" +[ -f "$ROOT/.mnemazine/config.local.sh" ] && . "$ROOT/.mnemazine/config.local.sh" INBOX="${MNEMAZINE_INBOX:-$ROOT/inbox}" VAULT="${MNEMAZINE_VAULT:-$ROOT/vault}" REPORTS="${MNEMAZINE_REPORTS:-$ROOT/reports}" @@ -64,11 +65,15 @@ cat > "$ROOT/.mnemazine/config.json" < "$ROOT/.mnemazine/config.local.sh" < "$ROOT/.mnemazine/config.local.sh" <