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:
parent
6422d65379
commit
db7e38b40b
6 changed files with 8 additions and 0 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -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
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue