From 6c332da7d3c275a043d3a977983984daf162067d Mon Sep 17 00:00:00 2001 From: Vladimir Panteleev Date: Thu, 19 Jan 2023 01:21:14 +0000 Subject: [PATCH] Fix ChatGPT container This container needs a writable $HOME, and will fail at startup if there isn't one. Provide one by pointing HOME to a path under the mounted /data directory. --- .../templates/systemd/matrix-bot-chatgpt.service.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/custom/matrix-bot-chatgpt/templates/systemd/matrix-bot-chatgpt.service.j2 b/roles/custom/matrix-bot-chatgpt/templates/systemd/matrix-bot-chatgpt.service.j2 index 4a528126..8e4a5020 100644 --- a/roles/custom/matrix-bot-chatgpt/templates/systemd/matrix-bot-chatgpt.service.j2 +++ b/roles/custom/matrix-bot-chatgpt/templates/systemd/matrix-bot-chatgpt.service.j2 @@ -25,6 +25,7 @@ ExecStart={{ devture_systemd_docker_base_host_command_docker }} run --rm --name --network={{ matrix_docker_network }} \ --env-file={{ matrix_bot_chatgpt_config_path }}/env \ --mount type=bind,src={{ matrix_bot_chatgpt_data_path }},dst=/data \ + --env HOME=/data/home \ {% for arg in matrix_bot_chatgpt_container_extra_arguments %} {{ arg }} \ {% endfor %}