mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
Merge pull request #65 from YunoHost/storage_dir
This commit is contained in:
commit
cd649f1694
2 changed files with 5 additions and 1 deletions
|
@ -27,7 +27,8 @@ MONITOR_ONLY_GOOD_QUALITY_APPS = True
|
||||||
MONTHLY_JOBS = True
|
MONTHLY_JOBS = True
|
||||||
WORKER_COUNT = 1
|
WORKER_COUNT = 1
|
||||||
YNH_BRANCH = "unstable"
|
YNH_BRANCH = "unstable"
|
||||||
DIST = "bullseye"
|
DIST = "bullseye"
|
||||||
|
STORAGE_PATH = "/data/yunorunner_data"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Cli tool
|
### 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
|
+ ":/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 = datetime.now()
|
||||||
begin_human = begin.strftime("%d/%m/%Y - %H:%M:%S")
|
begin_human = begin.strftime("%d/%m/%Y - %H:%M:%S")
|
||||||
msg = (
|
msg = (
|
||||||
|
|
Loading…
Add table
Reference in a new issue