mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
Add STORAGE_PATH to configuration
This commit is contained in:
parent
4251f3fbbc
commit
7dfaf5dcfa
2 changed files with 5 additions and 1 deletions
|
@ -27,7 +27,8 @@ MONITOR_ONLY_GOOD_QUALITY_APPS = True
|
|||
MONTHLY_JOBS = True
|
||||
WORKER_COUNT = 1
|
||||
YNH_BRANCH = "unstable"
|
||||
DIST = "bullseye"
|
||||
DIST = "bullseye"
|
||||
STORAGE_PATH = "/data/yunorunner_data"
|
||||
```
|
||||
|
||||
### Cli tool
|
||||
|
|
3
run.py
3
run.py
|
@ -643,6 +643,9 @@ async def run_job(worker, job):
|
|||
+ ":/usr/local/bin", # This is because lxc/lxd is in /usr/local/bin
|
||||
}
|
||||
|
||||
if hasattr(app.config, "STORAGE_PATH"):
|
||||
env["YNH_PACKAGE_CHECK_STORAGE_DIR"] = app.config.STORAGE_PATH
|
||||
|
||||
begin = datetime.now()
|
||||
begin_human = begin.strftime("%d/%m/%Y - %H:%M:%S")
|
||||
msg = (
|
||||
|
|
Loading…
Add table
Reference in a new issue