shiori/run.sh: set SHIORI_DIR
Ref https://github.com/go-shiori/shiori/wiki/Usage
This commit is contained in:
parent
384afc1d6e
commit
909603b4a9
1 changed files with 1 additions and 0 deletions
|
@ -19,6 +19,7 @@ fi
|
||||||
cd "${data_dir}" || { echo "Error: Failed to cd into '${data_dir}' (have you checked the permissions?)"; exit 2; };
|
cd "${data_dir}" || { echo "Error: Failed to cd into '${data_dir}' (have you checked the permissions?)"; exit 2; };
|
||||||
|
|
||||||
export HOME="${data_dir}";
|
export HOME="${data_dir}";
|
||||||
|
export SHIORI_DIR="${data_dir}";
|
||||||
|
|
||||||
if [[ "${1}" == "serve" ]]; then
|
if [[ "${1}" == "serve" ]]; then
|
||||||
exec /srv/shiori "$@" --port "${port}";
|
exec /srv/shiori "$@" --port "${port}";
|
||||||
|
|
Loading…
Reference in a new issue