Add initial support for solr

This commit is contained in:
Tom Wiesing 2022-11-02 13:50:11 +01:00
parent 7bedeefb50
commit b27871f39a
No known key found for this signature in database
13 changed files with 131 additions and 31 deletions

View file

@ -71,7 +71,7 @@ var errBootstrapCreateFile = exit.Error{
func (bs cBootstrap) Run(context wisski_distillery.Context) error {
// installation environment is the native environment!
// TODO: Should this be configurable?
var env environment.Native
env := new(environment.Native)
root := bs.Directory

View file

@ -30,7 +30,7 @@ func (monday) Description() wisski_distillery.Description {
func (monday monday) AfterParse() error {
// TODO: Use a generic environment here!
if !fsx.IsFile(environment.Native{}, monday.Positionals.GraphdbZip) {
if !fsx.IsFile(new(environment.Native), monday.Positionals.GraphdbZip) {
return errNoGraphDBZip.WithMessageF(monday.Positionals.GraphdbZip)
}
return nil

View file

@ -46,7 +46,7 @@ var errNoGraphDBZip = exit.Error{
func (s systemupdate) AfterParse() error {
// TODO: Use a generic environment here!
if !fsx.IsFile(environment.Native{}, s.Positionals.GraphdbZip) {
if !fsx.IsFile(new(environment.Native), s.Positionals.GraphdbZip) {
return errNoGraphDBZip.WithMessageF(s.Positionals.GraphdbZip)
}
return nil