Skip to content

Commit

Permalink
🔧 Load paperless.conf with python_dotenv before run (#136)
Browse files Browse the repository at this point in the history
This allow manual edition of all parameters
  • Loading branch information
BenoitAnastay committed Apr 22, 2024
1 parent 370bfe5 commit 74ac469
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion paperless-ngx/rootfs/etc/s6-overlay/s6-rc.d/paperless/run
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,8 @@ export PAPERLESS_USE_X_FORWARD_PORT
export PAPERLESS_CONSUMER_BARCODE_SCANNER
export PAPERLESS_CONFIGURATION_PATH

/sbin/docker-entrypoint.sh "/usr/local/bin/paperless_cmd.sh"
if bashio::fs.file_exists '/config/paperless.conf'; then
dotenv -f /config/paperless.conf -e true run /sbin/docker-entrypoint.sh "/usr/local/bin/paperless_cmd.sh"
else
/sbin/docker-entrypoint.sh "/usr/local/bin/paperless_cmd.sh"
fi

0 comments on commit 74ac469

Please sign in to comment.