Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2014-09-21 15:04:09 +0400
committermboelen <michael@cisofy.com>2014-09-21 15:04:09 +0400
commit47678ffeaa077d2b07f1bad0a77771e1a0356835 (patch)
tree9fcd84bef48874dc351b1bc55edb46eeab71babc
parent98a68c52ef054bf0c52d913bea9e1f93435d90c3 (diff)
Ignore some directories while building tarball
-rwxr-xr-xdev/build-lynis.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/dev/build-lynis.sh b/dev/build-lynis.sh
index 1eab8a53..7d2dd826 100755
--- a/dev/build-lynis.sh
+++ b/dev/build-lynis.sh
@@ -189,7 +189,7 @@
#fi
# Create tarball
- tar -C ${MYWORKDIR} --exclude=debian --exclude=.bzr* --exclude=.git* -c -z -f ${TARBALL} lynis 2> /dev/null
+ tar -C ${MYWORKDIR} --exclude=debian --exclude=README.md --exclude=.bzr* --exclude=.git* -c -z -f ${TARBALL} lynis 2> /dev/null
if [ -f ${TARBALL} ]; then
echo "[V] Tarball created"
@@ -198,6 +198,8 @@
ExitFatal
fi
+ TARBALL_MD5=`md5sum ${TARBALL}`
+ TARBALL_SHA1=`sha1sum ${TARBALL}`
echo "[*] Starting with RPM building process"
@@ -278,8 +280,9 @@
echo "[V] Done"
echo ""
echo "---------------------------------------------"
- echo "Tarball: ${TARBALL}"
- echo "RPM file: ${RPMFILE}"
+ echo "RPM file: ${RPMFILE}"
+ echo "Tarball: ${TARBALL}"
+ echo "Tarball (SHA1): ${TARBALL_SHA1}"
echo ""