summaryrefslogtreecommitdiff
path: root/Bastillefile
diff options
context:
space:
mode:
author53hornet <atc@53hor.net>2021-09-14 14:25:44 -0400
committer53hornet <atc@53hor.net>2021-09-14 14:25:44 -0400
commit321b386aa0c377b9b98026c22b8a21a1af73823e (patch)
tree950e5afb3c4afb027feb618944242c7d32799952 /Bastillefile
downloadcalibre-321b386aa0c377b9b98026c22b8a21a1af73823e.tar.xz
calibre-321b386aa0c377b9b98026c22b8a21a1af73823e.zip
feat: init BastillefileHEADmaster
Diffstat (limited to 'Bastillefile')
-rw-r--r--Bastillefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Bastillefile b/Bastillefile
new file mode 100644
index 0000000..790b49b
--- /dev/null
+++ b/Bastillefile
@@ -0,0 +1,15 @@
+# Calibre Ebook Server!
+
+# Prerequisites
+PKG calibre
+CMD pw useradd -n calibre -m -u 444
+CMD mkdir -p /var/db/calibre/books
+FSTAB /zroot/calibre /var/db/calibre nullfs rw 0 0
+FSTAB /zroot/calibre/books /var/db/calibre/books nullfs rw 0 0
+
+# Start server
+SYSRC calibre_enable=YES
+SYSRC calibre_library="/var/db/calibre/books"
+SYSRC calibre_flags="--enable-auth --userdb /var/db/calibre/users.db"
+SERVICE calibre restart
+