diff options
author | Brenton Earl <brent@exitstatusone.com> | 2017-05-03 08:26:55 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-05-03 08:26:55 +0700 |
commit | 9d0665d6d68ca6418394fcc9b699fa676f33070f (patch) | |
tree | 14ddcfa9ae0837f360d1ca0af31a819999faabc3 /network/nikto/doinst.sh | |
parent | 7904ef32572290008886f0770e4953eb49288ca0 (diff) |
network/nikto: Updated for version 2.1.6.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/nikto/doinst.sh')
-rw-r--r-- | network/nikto/doinst.sh | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/network/nikto/doinst.sh b/network/nikto/doinst.sh index bd63e8f2be51b..e59261f753b9d 100644 --- a/network/nikto/doinst.sh +++ b/network/nikto/doinst.sh @@ -1,22 +1,11 @@ config() { NEW="$1" OLD="$(dirname $NEW)/$(basename $NEW .new)" - # If there's no config file by that name, mv it over: if [ ! -r $OLD ]; then mv $NEW $OLD elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then - # toss the redundant copy rm $NEW fi - # Otherwise, we leave the .new copy for the admin to consider... } -# Keep same perms on nikto.conf: -if [ -e etc/nikto.conf ]; then - cp -a etc/nikto.conf etc/nikto.conf.new.incoming - cat etc/nikto.conf.new > etc/nikto.conf.new.incoming - mv etc/nikto.conf.new.incoming etc/nikto.conf.new -fi - config etc/nikto.conf.new - |