Update paperless-ngx-v5-install.sh

tweak
This commit is contained in:
tteckster 2023-02-10 16:44:35 -05:00 committed by GitHub
parent 57b4c2773b
commit 959cd5800e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -154,9 +154,12 @@ cd /opt/paperless
sed -i -e 's|-e git+https://github.com/paperless-ngx/django-q.git|git+https://github.com/paperless-ngx/django-q.git|' /opt/paperless/requirements.txt sed -i -e 's|-e git+https://github.com/paperless-ngx/django-q.git|git+https://github.com/paperless-ngx/django-q.git|' /opt/paperless/requirements.txt
$STD pip install --upgrade pip $STD pip install --upgrade pip
$STD pip install -r requirements.txt $STD pip install -r requirements.txt
$STD python3 -m nltk.downloader -d /usr/share/nltk_data all
msg_ok "Installed Paperless-ngx" msg_ok "Installed Paperless-ngx"
msg_info "Installing Natural Language Toolkit (Patience)"
$STD python3 -m nltk.downloader -d /usr/share/nltk_data all
msg_ok "Installed Natural Language Toolkit"
msg_info "Setting up database" msg_info "Setting up database"
DB_USER=paperless DB_USER=paperless
DB_PASS="$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 13)" DB_PASS="$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 13)"