mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Set a default PKG_PATH.
This commit is contained in:
parent
e692e3aa52
commit
3ec12cb0ce
1 changed files with 2 additions and 0 deletions
|
|
@ -349,6 +349,8 @@ install_package(char *fname)
|
|||
fprintf(stderr, "install_package(): Error malloc'ing tmp_file\n");
|
||||
exit(-1);
|
||||
}
|
||||
if (!getenv("PKG_PATH"))
|
||||
putenv("/usr/ports/packages:/usr/ports/packages/all:.");
|
||||
exec_catch_errors(PKG_ADD, fname, tmp_file);
|
||||
|
||||
unlink(tmp_file);
|
||||
|
|
|
|||
Loading…
Reference in a new issue