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 Type=simple
User=__APP__ User=__APP__
Group=__APP__ Group=__APP__
Environment=PATH=__LOCAL_PATH__
WorkingDirectory=__INSTALL_DIR__/src/ WorkingDirectory=__INSTALL_DIR__/src/
ExecStart=__INSTALL_DIR__/venv/bin/python3 manage.py document_consumer ExecStart=__INSTALL_DIR__/venv/bin/python3 manage.py document_consumer
StandardOutput=append:/var/log/__APP__/__APP__-consumer.log StandardOutput=append:/var/log/__APP__/__APP__-consumer.log

View file

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

View file

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

View file

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

View file

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

View file

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