This commit is contained in:
Thomas Legay 2024-05-15 10:20:52 +02:00
parent c72fb8b625
commit 654ff2f496
30 changed files with 265 additions and 15 deletions

View file

@ -0,0 +1,12 @@
#!/usr/bin/env bash
(
flock 9
if [ -e /var/cache/paperless-ngx/lastcheck ] && [ "$(cat /var/cache/paperless-ngx/lastcheck)" == "$(date +%y%m%d)" ]
then
echo allready check today
else
python3 -m venv /var/cache/paperless-ngx/python-venv
/var/cache/paperless-ngx/python-venv/bin/pip3 install -r /usr/share/paperless-ngx/requirements.txt
date +%y%m%d > /var/cache/paperless-ngx/lastcheck
fi
) 9>python3 -m venv /tmp/paperless-ngx-python-venv