mikelangelo-project / capstan

Capstan, a tool for packaging and running your application on OSv.
http://osv.io/capstan/
Other
19 stars 7 forks source link

Respect CAPSTAN_ROOT environment variable on instance run #82

Closed miha-plesko closed 6 years ago

miha-plesko commented 6 years ago

Function ConfigDir did not respect CAPSTAN_ROOT environment variable which resulted in instances always being run in the default $HOME/.capstan/instances directory. With this commit we fix this so that when CAPSTAN_ROOT is used, all three subdirectories are created like this:

CAPSTAN_ROOT/repository
CAPSTAN_ROOT/packages
CAPSTAN_ROOT/instances <--- this was in ~/.capstan/instances before

Fixes https://github.com/mikelangelo-project/capstan/issues/30