From 24d4ed912ebb48b2edfe756a8dfae174b427e771 Mon Sep 17 00:00:00 2001 From: Matt Tesauro Date: Sun, 23 May 2021 00:58:51 -0500 Subject: [PATCH] Updated to make using local_settings.py better supported/easier (#11) * Many minor edits/clean-ups * Updated to handle upcoming changes in DefectDojo 2.0 * Updated to make using local_settings.py better supported/easier --- godojo.go | 2 +- os.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/godojo.go b/godojo.go index d093680..2a72ea9 100644 --- a/godojo.go +++ b/godojo.go @@ -24,7 +24,7 @@ import ( // Global vars var ( // Installer version - ver = "1.1.2" + ver = "1.1.3" // Configuration file name cf = "dojoConfig.yml" // Global config struct diff --git a/os.go b/os.go index 46eddb3..0e274d0 100644 --- a/os.go +++ b/os.go @@ -138,8 +138,8 @@ func createSettingsPy(id string, inst *config.DojoConfig, cmds *osCmds) { // Create a settings.py for Dojo to use cmds.id = id cmds.cmds = []string{ - "cp " + inst.Install.Root + "/django-DefectDojo/dojo/settings/settings.dist.py " + - inst.Install.Root + "/django-DefectDojo/dojo/settings/settings.py", + "ln -s " + inst.Install.Root + "/django-DefectDojo/dojo/settings " + + inst.Install.Root + "/customizations", "chown " + inst.Install.OS.User + "." + inst.Install.OS.Group + " " + inst.Install.Root + "/django-DefectDojo/dojo/settings/settings.py", }