diff options
Diffstat (limited to 'rc.book-reader')
| -rwxr-xr-x | rc.book-reader | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.book-reader b/rc.book-reader index 5ba30a3..aed5a34 100755 --- a/rc.book-reader +++ b/rc.book-reader @@ -4,7 +4,7 @@ # SPDX-License-Identifier: GPL-2.0-only # # Config (shell syntax): ${XDG_CONFIG_HOME:-~/.config}/book-reader.conf -# LIBRARY=/path/to/collection # required; every folder with images inside is a book +# LIBRARY=/path/to/library # required; one folder per series, every folder with images is a book # PORT=8642 # keep it fixed: reading progress is stored per origin # BIND=127.0.0.1 # READER=/path/to/book-reader/reader.html # needed when this script is copied out of the repo @@ -39,7 +39,7 @@ start() { mkdir -p -m 700 "$RUN" "$RUN/root" find "$RUN/root" -mindepth 1 -maxdepth 1 -type l -delete ln -s "$(readlink -f "$READER")" "$RUN/root/reader.html" - ln -s "$(readlink -f "$LIBRARY")" "$RUN/root/$(basename "$LIBRARY")" + ln -s "$(readlink -f "$LIBRARY")" "$RUN/root/library" setsid python3 -m http.server -b "$BIND" -d "$RUN/root" "$PORT" >"$RUN/log" 2>&1 & echo $! >"$PIDFILE" sleep 0.5 |
