1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/paperless-ngx_ynh.git synced 2024-09-03 19:56:33 +02:00

Include built gs in Environment

This commit is contained in:
tituspijean 2024-02-12 18:38:29 +00:00
parent 6422d65379
commit db7e38b40b
6 changed files with 8 additions and 0 deletions

View file

@ -6,6 +6,7 @@ Requires=redis.service
Type=simple
User=__APP__
Group=__APP__
Environment=PATH=__LOCAL_PATH__
WorkingDirectory=__INSTALL_DIR__/src/
ExecStart=__INSTALL_DIR__/venv/bin/python3 manage.py document_consumer
StandardOutput=append:/var/log/__APP__/__APP__-consumer.log

View file

@ -6,6 +6,7 @@ Requires=redis.service
Type=simple
User=__APP__
Group=__APP__
Environment=PATH=__LOCAL_PATH__
WorkingDirectory=__INSTALL_DIR__/src/
ExecStart=__INSTALL_DIR__/venv/bin/celery --app paperless beat --loglevel INFO
StandardOutput=append:/var/log/__APP__/__APP__-scheduler.log

View file

@ -6,6 +6,7 @@ Requires=redis.service
Type=simple
User=__APP__
Group=__APP__
Environment=PATH=__LOCAL_PATH__
WorkingDirectory=__INSTALL_DIR__/src/
ExecStart=__INSTALL_DIR__/venv/bin/celery --app paperless worker --loglevel INFO
StandardOutput=append:/var/log/__APP__/__APP__-task-queue.log

View file

@ -8,6 +8,7 @@ Requires=redis.service
Type=simple
User=__APP__
Group=__APP__
Environment=PATH=__LOCAL_PATH__
WorkingDirectory=__INSTALL_DIR__/src/
ExecStart=__INSTALL_DIR__/venv/bin/uvicorn --port=__PORT__ --log-level=warning paperless.asgi:application
StandardOutput=append:/var/log/__APP__/__APP__.log

View file

@ -71,6 +71,8 @@ popd
chown -R $app:$app "$install_dir/ghostscript"
chmod 550 $install_dir/ghostscript/bin/gs
local_path=$install_dir/ghostscript/bin/gs:$PATH
#=================================================
# CREATE DATA DIRECTORY
#=================================================

View file

@ -114,6 +114,8 @@ then
chmod 550 $install_dir/ghostscript/bin/gs
fi
local_path=$install_dir/ghostscript/bin/gs:$PATH
#=================================================
# UPDATE A CONFIG FILE
#=================================================