From 0c6fbea97e30f8f5de5c8a59e29190206d647024 Mon Sep 17 00:00:00 2001 From: Peter Marquardt Date: Wed, 6 Nov 2024 12:42:11 +0100 Subject: [PATCH] move nltk folder one up ...so we can delete data on update/grade --- paperless-ngx.build.sh | 10 +++++----- paperless.conf.build.sh | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/paperless-ngx.build.sh b/paperless-ngx.build.sh index fd1f026..c2f7d38 100755 --- a/paperless-ngx.build.sh +++ b/paperless-ngx.build.sh @@ -103,12 +103,12 @@ popd echo "Installing NLTK data" -mkdir -pv ${PROJECT}/data/nltk +mkdir -pv ${PROJECT}/nltk -python3 -W ignore::RuntimeWarning -m nltk.downloader -d "${PROJECT}/data/nltk" snowball_data -python3 -W ignore::RuntimeWarning -m nltk.downloader -d "${PROJECT}/data/nltk" stopwords -python3 -W ignore::RuntimeWarning -m nltk.downloader -d "${PROJECT}/data/nltk" punkt -python3 -W ignore::RuntimeWarning -m nltk.downloader -d "${PROJECT}/data/nltk" punkt_tab +python3 -W ignore::RuntimeWarning -m nltk.downloader -d "${PROJECT}/nltk" snowball_data +python3 -W ignore::RuntimeWarning -m nltk.downloader -d "${PROJECT}/nltk" stopwords +python3 -W ignore::RuntimeWarning -m nltk.downloader -d "${PROJECT}/nltk" punkt +python3 -W ignore::RuntimeWarning -m nltk.downloader -d "${PROJECT}/nltk" punkt_tab popd diff --git a/paperless.conf.build.sh b/paperless.conf.build.sh index 79f8e83..11ef71d 100755 --- a/paperless.conf.build.sh +++ b/paperless.conf.build.sh @@ -26,7 +26,7 @@ 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_NLTK_DIR=${PROJECT}/nltk PAPERLESS_SCRATCH_DIR=${TMPDIR} PAPERLESS_STATICDIR=${PREFIX}/static