Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
paperless-baremetal/paperless.conf.build.sh
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
58 lines (45 sloc)
1.61 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -x | |
. build.profile | |
PREFIX=${PROJECT}/paperless-ngx | |
# dort das configfile hinschreiben | |
TO=${PROJECT}/conf/paperless.conf | |
# ist source entpackt ? | |
[ -d "${BUILD_DIR}/${BUILD_paperless}" ] || { echo "${BUILD_paperless} does not exist.";exit 1; } | |
# config file hoch linken | |
ln -vfs ${PROJECT}/conf/paperless.conf ${PREFIX} | |
# random key | |
PAPERLESS_SECRET_KEY=${PAPERLESS_SECRET_KEY:-$(cat /dev/urandom | head -c 50 | openssl base64 |head -1)} | |
# paperless.conf aus paperles.conf.example hart generieren | |
_conf=( | |
# PAPERLESS_AUTO_LOGIN_USERNAME=paperless | |
PAPERLESS_CONSUMER_ENABLE_ASN_BARCODE=true | |
PAPERLESS_CONSUMER_ENABLE_BARCODES=true | |
PAPERLESS_CONSUMER_RECURSIVE=true | |
PAPERLESS_CONSUMER_SUBDIRS_AS_TAGS=true | |
PAPERLESS_CONSUMPTION_DIR=${PROJECT}/consume | |
PAPERLESS_DATA_DIR=${PROJECT}/data | |
PAPERLESS_LOGGING_DIR=${LOGDIR} | |
PAPERLESS_MEDIA_ROOT=${PROJECT}/media | |
PAPERLESS_NLTK_DIR=${PROJECT}/data/nltk | |
PAPERLESS_SCRATCH_DIR=${TMPDIR} | |
PAPERLESS_STATICDIR=${PREFIX}/static | |
PAPERLESS_URL=${PAPERLESS_URL} | |
PAPERLESS_CSRF_TRUSTED_ORIGINS=${PAPERLESS_CSRF_TRUSTED_ORIGINS:-${PAPERLESS_URL}} | |
PAPERLESS_OCR_CLEAN=clean | |
PAPERLESS_OCR_LANGUAGE=deu+eng | |
PAPERLESS_OCR_MODE=force | |
PAPERLESS_REDIS=unix://${DEVSHM}/redis.sock | |
PAPERLESS_SECRET_KEY=${PAPERLESS_SECRET_KEY} | |
PAPERLESS_THUMBNAIL_FONT_NAME=${PROJECT}/${BUILD_libfontttf}/LiberationMono-Regular.ttf | |
PAPERLESS_TIME_ZONE=Europe/Berlin | |
) | |
( | |
set -x | |
echo "# generated by $0 in $PWD. do not edit." | |
echo "# paperless.conf.example" | |
cat ${BUILD_paperless}/paperless.conf.example | |
echo "# generated by $0 in $PWD" | |
for c in "${_conf[@]}"; do | |
echo "$c" | |
done | |
) | tee ${TO} |