Skip to content

Commit 534c289

Browse files
Users can now add calibre plugins that are compatible with Calibre's CLI interdace to /config/calibre_plugins
1 parent 3746332 commit 534c289

File tree

2 files changed

+11
-7
lines changed
  • root/etc/s6-overlay/s6-rc.d
    • cwa-init
    • metadata-change-detector

2 files changed

+11
-7
lines changed

root/etc/s6-overlay/s6-rc.d/cwa-init/run

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@
44
# Make sure required directories exist
55
#------------------------------------------------------------------------------------------------------------------------
66

7-
mkdir -p /config/processed_books/converted
8-
mkdir -p /config/processed_books/imported
9-
mkdir -p /config/processed_books/failed
10-
mkdir -p /config/processed_books/fixed_originals
11-
mkdir -p /config/log_archive
12-
mkdir -p /config/.cwa_conversion_tmp
7+
install -d -o abc -g abc /config/processed_books/converted
8+
install -d -o abc -g abc /config/processed_books/imported
9+
install -d -o abc -g abc /config/processed_books/failed
10+
install -d -o abc -g abc /config/processed_books/fixed_originals
11+
install -d -o abc -g abc /config/log_archive
12+
install -d -o abc -g abc /config/.cwa_conversion_tmp
13+
14+
# For Calibre Plugins
15+
install -d -o abc -g abc /config/.config/calibre/plugins
16+
ln -sf /config/.config/calibre/plugins /config/calibre_plugins
1317

1418
#------------------------------------------------------------------------------------------------------------------------
1519
# Remove any leftover lock files

root/etc/s6-overlay/s6-rc.d/metadata-change-detector/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ WATCH_FOLDER="/app/calibre-web-automated/metadata_change_logs"
77
echo "[metadata-change-detector] Watching folder: $WATCH_FOLDER"
88

99
# Create the folder if it doesn't exist
10-
mkdir -p "$WATCH_FOLDER"
10+
install -d -o abc -g abc "$WATCH_FOLDER"
1111

1212
# Monitor the folder for new files
1313
s6-setuidgid abc inotifywait -m -e close_write -e moved_to --exclude '^.*\.(swp)$' "$WATCH_FOLDER" |

0 commit comments

Comments
 (0)