20240515
This commit is contained in:
parent
c72fb8b625
commit
654ff2f496
30 changed files with 265 additions and 15 deletions
12
ressources/paperless-ngx/prestart.sh
Executable file
12
ressources/paperless-ngx/prestart.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue