aboutsummaryrefslogtreecommitdiffstats
path: root/bin/srt
diff options
context:
space:
mode:
authorDavid Reyna <David.Reyna@windriver.com>2018-08-10 12:56:09 -0700
committerDavid Reyna <David.Reyna@windriver.com>2018-08-10 12:56:09 -0700
commitfad6046720e0757d4d9edca0bf4c8078d40ba935 (patch)
tree26ec08124698756fb4b3fbffdf22b117f994222b /bin/srt
parent36a356e595fab93ed834f755b1a2efe798ac66ee (diff)
downloadsrtool-fad6046720e0757d4d9edca0bf4c8078d40ba935.tar.gz
srtool-fad6046720e0757d4d9edca0bf4c8078d40ba935.tar.bz2
srtool-fad6046720e0757d4d9edca0bf4c8078d40ba935.zip
Cummulative development update August 2018
* Add incremental NIST scans and import to CVE database * Add modified NIST scans and import to CVE database * Moved CVE details out of SRTool database to reduce size * Add CVE details lookup in cached CVE upstream files * Added edit support for Vulnerabilies and Investigations * Comments * Attachments and downloads * Product list * History audit trail * Add Vulnerability and Investigation creation from CVE triage * Add user id to session variables * Add defect import placeholder script * Modularize the fixture files for common versus site-specific setup Signed-off-by: Moayer, Puya <Puya.Moayer@windriver.com> Signed-off-by: David Reyna <David.Reyna@windriver.com>
Diffstat (limited to 'bin/srt')
-rwxr-xr-xbin/srt10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/srt b/bin/srt
index 3b0f2ecd..0800ab9a 100755
--- a/bin/srt
+++ b/bin/srt
@@ -143,11 +143,17 @@ else
SRT=$0
fi
+# set up base paths and definitions
export SRT_BASE_DIR=$(dirname $SRT)
SRT_BASE_DIR=$(readlink -f $SRT_BASE_DIR)
SRT_BASE_DIR=$(dirname $SRT_BASE_DIR)
MANAGE="python3 $SRT_BASE_DIR/lib/manage.py"
+# insure basic directories are present
+mkdir -p $SRT_BASE_DIR/data
+mkdir -p $SRT_BASE_DIR/data/cache
+mkdir -p $SRT_BASE_DIR/update_logs
+touch $SRT_BASE_DIR/update_logs/master_log.txt
ADDR_PORT="localhost:8000"
unset CMD
@@ -214,6 +220,10 @@ case $CMD in
echo "Failed ${CMD}."
exit 4
fi
+ # create working directories for srtool
+ mkdir -p $SRT_BASE_DIR/update_logs
+ mkdir -p $SRT_BASE_DIR/backups
+ mkdir -p $SRT_BASE_DIR/reports
# set fail safe stop system on terminal exit
trap stop_system SIGHUP
echo "Successful ${CMD}."