diff --git a/conf/systemd-consumer.service b/conf/systemd-consumer.service index 1a1bf8b..9563edc 100644 --- a/conf/systemd-consumer.service +++ b/conf/systemd-consumer.service @@ -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 diff --git a/conf/systemd-scheduler.service b/conf/systemd-scheduler.service index 240dbfe..5b6f132 100644 --- a/conf/systemd-scheduler.service +++ b/conf/systemd-scheduler.service @@ -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 diff --git a/conf/systemd-task-queue.service b/conf/systemd-task-queue.service index 72982cc..3e8a1e1 100644 --- a/conf/systemd-task-queue.service +++ b/conf/systemd-task-queue.service @@ -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 diff --git a/conf/systemd.service b/conf/systemd.service index 1f93cdf..7a88f28 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -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 diff --git a/scripts/install b/scripts/install index 349c6c2..897ea5a 100755 --- a/scripts/install +++ b/scripts/install @@ -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 #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index a6286cd..aef7c3f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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 #=================================================