From 384afc1d6e6bc7fda62b16a53da388084ec53bcb Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sun, 4 Apr 2021 14:28:27 +0100 Subject: [PATCH] shiori/run.sh: set HOME --- images/shiori/run.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/images/shiori/run.sh b/images/shiori/run.sh index 0a34764..71b4398 100755 --- a/images/shiori/run.sh +++ b/images/shiori/run.sh @@ -18,6 +18,8 @@ fi cd "${data_dir}" || { echo "Error: Failed to cd into '${data_dir}' (have you checked the permissions?)"; exit 2; }; +export HOME="${data_dir}"; + if [[ "${1}" == "serve" ]]; then exec /srv/shiori "$@" --port "${port}"; else