diff options
Diffstat (limited to 'extras/build-lynis.sh')
-rwxr-xr-x | extras/build-lynis.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/extras/build-lynis.sh b/extras/build-lynis.sh index 7d2dd826..437a530a 100755 --- a/extras/build-lynis.sh +++ b/extras/build-lynis.sh @@ -232,7 +232,7 @@ else echo "[X] Could not find source file (${SOURCEFILE_RPM})" echo " Hint: cp <lynis.tar.gz> ${SOURCEFILE_RPM}" - ExitFatal + #ExitFatal fi echo "[*] Starting with DEB building process" @@ -271,6 +271,14 @@ # echo "Output: ${BZRSTATUS}" # fi + if [ -d ${MYBUILDDIR}/git/Lynis ]; then + echo "git clone already exists" + rm -rf ${MYBUILDDIR}/git/Lynis + #git checkout tags/${LYNIS_VERSION} + fi + git clone https://github.com/CISOfy/Lynis.git ${MYBUILDDIR}/git/Lynis + #git tag -l ${MYBUILDDIR}/git/Lynis + cd .. ${GITBUILDPACKAGEBINARY} --git-tarball-dir=${MYBUILDDIR} --git-export-dir=${DEBWORKDIR} cd ${MYWORKDIR} |