Skip to content

Commit d6bb5d3

Browse files
BarberBarber
authored andcommitted
clean up install
1 parent 4d415f3 commit d6bb5d3

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

backend/internal/processes/bootstrap.go

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,18 @@ import (
1212

1313
func BootstrapEnv(appconf *config.AppConfig) {
1414
store, err := database.NewGormDatastore()
15-
15+
if err != nil {
16+
log.WithError(err).Error("Problem creating database")
17+
}
1618
provisionS3(appconf)
19+
storeDefaultSSMParameters(appconf, store)
1720
initTerraform(store, appconf)
1821

19-
storeDefaultSSMParameters(appconf, store)
2022
//r := action.ActRunnerImpl{}
21-
err = UpdateCoreConfig(appconf, store, nil, "")
22-
if err != nil {
23-
log.WithError(err).Error("Problem updating ssm config")
24-
}
23+
//err = UpdateCoreConfig(appconf, store, nil, "")
24+
//if err != nil {
25+
// log.WithError(err).Error("Problem updating ssm config")
26+
//}
2527
installGateway(store, appconf)
2628
}
2729

@@ -37,7 +39,10 @@ func provisionS3(appConfig *config.AppConfig) {
3739
func initTerraform(store database.Datastore, appconf *config.AppConfig) {
3840
fs := afero.NewOsFs()
3941
writeInitTemplate(fs, appconf)
40-
installUnityCloudEnv(store, appconf)
42+
err := installUnityCloudEnv(store, appconf)
43+
if err != nil {
44+
return
45+
}
4146

4247
}
4348

0 commit comments

Comments
 (0)