Skip to content

Commit

Permalink
[Change] added '--beta' flag to '-d|--update-ver' to support pulling …
Browse files Browse the repository at this point in the history
…down beta release of LMD
  • Loading branch information
rfxn committed Sep 1, 2018
1 parent 201f90f commit fb0c2e6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ v1.6.3 | Sep 01 2018:
[Change] cleanup .tgz/.md5 files on version updates mid-flight to prevent potential 'cd: too many arguments' errors
[Change] trim inotify log from beginning instead of end of file; pr #292
[Change] user mode scanning no longer scans system temporary paths; issue #283
[Change] added '--beta' flag to '-d|--update-ver' to support pulling down beta release of LMD
[Change] stage v1.6.3 release; update version and date stamps
[Kudos] Thank you to those that contributed pull requests and issues during this release cycle. PR contributions from:
sporks5000
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.RELEASE
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ v1.6.3 | Sep 01 2018:
[Change] cleanup .tgz/.md5 files on version updates mid-flight to prevent potential 'cd: too many arguments' errors
[Change] trim inotify log from beginning instead of end of file; pr #292
[Change] user mode scanning no longer scans system temporary paths; issue #283
[Change] added '--beta' flag to '-d|--update-ver' to support pulling down beta release of LMD
[Change] stage v1.6.3 release; update version and date stamps
[Kudos] Thank you to those that contributed pull requests and issues during this release cycle. PR contributions from:
sporks5000
Expand Down
6 changes: 6 additions & 0 deletions files/internals/functions
Original file line number Diff line number Diff line change
Expand Up @@ -1865,6 +1865,12 @@ lmdup() {
tmpwd="$tmpdir/.lmdup.$RANDOM.$$"
upstreamver="$tmpwd/.lmdup_vercheck.$$"
mkdir -p $tmpwd ; chmod 700 $tmpwd

if [ "$lmdup_beta" ]; then
lmd_hash_url="${lmd_hash_url}.beta"
lmd_version_url="${lmd_version_url}.beta"
lmd_current_tgzfile="maldetect-beta.tar.gz"
fi

eout "{update} checking for available updates..." 1
get_remote_file "$lmd_version_url" "update" "1"
Expand Down
4 changes: 3 additions & 1 deletion files/maldet
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,9 @@ else
fi
if [ "$1" == "--force" ]; then
lmdup_force=1
fi
elif [ "$1" == "--beta" ]; then
lmdup_beta=1
fi
lmdup
;;
-u|--update|--update-sigs)
Expand Down

0 comments on commit fb0c2e6

Please sign in to comment.