"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lynis" between
lynis-3.0.5.tar.gz and lynis-3.0.6.tar.gz

About: Lynis is a security and system auditing tool.

lynis  (lynis-3.0.5):lynis  (lynis-3.0.6)
skipping to change at line 46 skipping to change at line 46
# #
################################################################################ # ################################################################################ #
# #
# Program information # Program information
PROGRAM_NAME="Lynis" PROGRAM_NAME="Lynis"
PROGRAM_AUTHOR="CISOfy" PROGRAM_AUTHOR="CISOfy"
PROGRAM_AUTHOR_CONTACT="lynis-dev@cisofy.com" PROGRAM_AUTHOR_CONTACT="lynis-dev@cisofy.com"
PROGRAM_WEBSITE="https://cisofy.com/lynis/" PROGRAM_WEBSITE="https://cisofy.com/lynis/"
# Version details # Version details
PROGRAM_RELEASE_DATE="2021-07-02" PROGRAM_RELEASE_DATE="2021-07-22"
PROGRAM_RELEASE_TIMESTAMP=1625228663 PROGRAM_RELEASE_TIMESTAMP=1626945158
PROGRAM_RELEASE_TYPE="release" # pre-release or release PROGRAM_RELEASE_TYPE="release" # pre-release or release
PROGRAM_VERSION="3.0.5" PROGRAM_VERSION="3.0.6"
# Source, documentation and license # Source, documentation and license
PROGRAM_SOURCE="https://github.com/CISOfy/lynis" PROGRAM_SOURCE="https://github.com/CISOfy/lynis"
PROGRAM_PACKAGE="https://packages.cisofy.com/" PROGRAM_PACKAGE="https://packages.cisofy.com/"
PROGRAM_DOCUMENTATION="https://cisofy.com/docs/" PROGRAM_DOCUMENTATION="https://cisofy.com/docs/"
PROGRAM_COPYRIGHT="2007-2021, ${PROGRAM_AUTHOR} - ${PROGRAM_WEBSITE}" PROGRAM_COPYRIGHT="2007-2021, ${PROGRAM_AUTHOR} - ${PROGRAM_WEBSITE}"
PROGRAM_LICENSE="${PROGRAM_NAME} comes with ABSOLUTELY NO WARRANTY. This is free software, and you are PROGRAM_LICENSE="${PROGRAM_NAME} comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under the terms of the GNU General Public License. welcome to redistribute it under the terms of the GNU General Public License.
See the LICENSE file for details about using this software." See the LICENSE file for details about using this software."
PROGRAM_EXTRAINFO="Enterprise support available (compliance, plugins, interf ace and tools)" PROGRAM_EXTRAINFO="Enterprise support available (compliance, plugins, interf ace and tools)"
skipping to change at line 596 skipping to change at line 596
else else
set -u # Do not allow uninitialized variables set -u # Do not allow uninitialized variables
fi fi
# Import a different language when configured # Import a different language when configured
if [ ! "${LANGUAGE}" = "en" ]; then if [ ! "${LANGUAGE}" = "en" ]; then
LogText "Language is set to ${LANGUAGE}" LogText "Language is set to ${LANGUAGE}"
Display --indent 2 --text "- Detecting language and localization" --resu lt "${LANGUAGE}" --color WHITE Display --indent 2 --text "- Detecting language and localization" --resu lt "${LANGUAGE}" --color WHITE
if [ ! -f ${DBDIR}/languages/${LANGUAGE} ]; then if [ ! -f ${DBDIR}/languages/${LANGUAGE} ]; then
Display --indent 4 --text "${YELLOW}Notice:${NORMAL} no language fil e found for '${LANGUAGE}' (tried: ${DBDIR}/languages/${LANGUAGE})" Display --indent 4 --text "${YELLOW}Notice:${NORMAL} no language fil e found for '${LANGUAGE}' (tried: ${DBDIR}/languages/${LANGUAGE})"
if IsDeveloperVersion; then Display --indent 4 --text "See https://g ithub.com/CISOfy/lynis-sdk/documentation/10-translations.md for more details to help translate Lynis"; fi if IsDeveloperVersion; then Display --indent 4 --text "See https://g ithub.com/CISOfy/lynis-sdk/blob/master/documentation/10-translations.md for more details to help translate Lynis"; fi
sleep 5 sleep 5
else else
LogText "Importing language file (${DBDIR}/languages/${LANGUAGE})" if SafeFile "${DBDIR}/languages/${LANGUAGE}"; then
. ${DBDIR}/languages/${LANGUAGE} LogText "Importing language file (${DBDIR}/languages/${LANGUAGE}
)"
. ${DBDIR}/languages/${LANGUAGE}
# Check for missing translations if we are a pre-release or less
than a week old
if grep -E -q -s "^#" ${DBDIR}/languages/${LANGUAGE}; then
TIME_DIFFERENCE_CHECK=604800 # 1 week
RELEASE_PLUS_TIMEDIFF=$((PROGRAM_RELEASE_TIMESTAMP + TIME_DI
FFERENCE_CHECK))
if IsDeveloperVersion || [ ${NOW} -lt ${RELEASE_PLUS_TIMEDIF
F} ]; then
Display --indent 4 --text "Translation file (db/language
s/${LANGUAGE}) needs an update" --result "OUTDATED" --color RED
Display --indent 4 --text "=============================
=========================================="
Display --indent 4 --text "Help other users and translat
e the missing lines:"
Display --indent 4 --text "1) Go to: https://github.com/
CISOfy/lynis/edit/master/db/languages/${LANGUAGE}"
Display --indent 4 --text "2) Translate (some of) the li
nes starting with a hash (#) and remove the leading hash"
Display --indent 4 --text "3) Commit the changes"
Display --indent 4 --text "Thank you!"
Display --indent 4 --text "Note: no lines with a hash? L
ook if the file recently has been changed by another translator."
Display --indent 4 --text "=============================
=========================================="
sleep 30
fi
fi
else
LogText "Could not import language file due to incorrect permiss
ions"
fi
fi fi
fi fi
LogTextBreak LogTextBreak
# Pre-execution tests # Pre-execution tests
if [ ${UPLOAD_DATA} -eq 1 -a -z "${LICENSE_KEY}" ]; then DisplayError "${ERR OR_NO_LICENSE}" 64; fi if [ ${UPLOAD_DATA} -eq 1 -a -z "${LICENSE_KEY}" ]; then DisplayError "${ERR OR_NO_LICENSE}" 64; fi
if [ ${UPLOAD_DATA} -eq 1 -a -z "${UPLOAD_SERVER}" ]; then DisplayError "${E RROR_NO_UPLOAD_SERVER}" 64; fi if [ ${UPLOAD_DATA} -eq 1 -a -z "${UPLOAD_SERVER}" ]; then DisplayError "${E RROR_NO_UPLOAD_SERVER}" 64; fi
# #
################################################################################ # ################################################################################ #
 End of changes. 4 change blocks. 
6 lines changed or deleted 40 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)