> For the complete documentation index, see [llms.txt](https://edissyum.gitbook.io/open-capture-for-mem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://edissyum.gitbook.io/open-capture-for-mem/technique/mise-a-jour.md).

# Mise à jour

Un script de mise à jour est disponible afin de faciliter ce processus. Ce dernier est situé dans le même dossier que le script d'installation : `/opt/edissyum/opencaptureformem/install/update.sh`.

Ce script mettra à jour les paquets APT ainsi que les paquets PIP, si nécessaire. Tout le paramétrage spécifique dans les fichiers `.ini` sera conservé. Un backup sera également effectué, sous la forme suivante : `/opt/edissyum/opencaptureformem.$currentDate`.&#x20;

Pour lancer le script, rien de plus simple :

```bash
# Récupération des sources à jour
cd /opt/edissyum/opencaptureformem/
git config --global user.email "update@opencaptureformem"
git config --global user.name "Update Open-Capture For MEM"
git pull
git fetch --tags
git stash
latest_tag=$(git ls-remote --tags --sort="v:refname" https://github.com/edissyum/opencaptureformem.git | tail -n1 | sed 's/.*\///; s/\^{}//')
git checkout "$latest_tag"
git config core.fileMode False

# Lancement de la mise à jour
cd install/
chmod u+x update.sh
sudo ./update.sh
```

Lors de la mise à jour, il est possible que les fichiers de configurations aient besoin de modification. En effet, si de nouvelles fonctionnalités sont ajoutées, il est nécessaire de les rajouter manuellement dans vos fichiers de configurations. Pour cela, comparez vos fichier `src/config/config.ini` et `src/config/mail.ini` aux fichiers `src/config/config.ini.default` et `src/config/mail.ini.default`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://edissyum.gitbook.io/open-capture-for-mem/technique/mise-a-jour.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
