diff options
author | Guido Falsi <madpilot@FreeBSD.org> | 2020-06-16 22:22:30 +0000 |
---|---|---|
committer | Guido Falsi <madpilot@FreeBSD.org> | 2020-06-16 22:22:30 +0000 |
commit | 6d29e326c4d932aa8d8fd3d725bc9f086f1eb784 (patch) | |
tree | 990f6e67d6d6a348776f12970e1c5310ff887f09 /net/ntopng/files/patch-httpdocs_misc_ntopng-add-user.sh | |
parent | - Update to 1.5.4 (diff) |
Fix script to use md5 and not md5sum.
PR: 243110
Submitted by: Tomoyuki Sakurai <trombik1973@gmail.com>
Diffstat (limited to 'net/ntopng/files/patch-httpdocs_misc_ntopng-add-user.sh')
-rw-r--r-- | net/ntopng/files/patch-httpdocs_misc_ntopng-add-user.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/net/ntopng/files/patch-httpdocs_misc_ntopng-add-user.sh b/net/ntopng/files/patch-httpdocs_misc_ntopng-add-user.sh new file mode 100644 index 000000000000..6d63cf1fe211 --- /dev/null +++ b/net/ntopng/files/patch-httpdocs_misc_ntopng-add-user.sh @@ -0,0 +1,18 @@ +--- httpdocs/misc/ntopng-add-user.sh.orig 2020-06-15 13:08:57 UTC ++++ httpdocs/misc/ntopng-add-user.sh +@@ -111,13 +111,13 @@ function validate_username { + + function password_md5 { + #make sure the md5 utility works as expected +- local admin_md5=`echo -n admin | md5sum | cut -c 1-32` ++ local admin_md5=`echo -n admin | md5 | cut -c 1-32` + if [[ $admin_md5 != "21232f297a57a5a743894a0e4a801fc3" ]] + then + echo "md5sum not working as expected" + return 1 + fi +- NTOPNG_PASSWORD_MD5=`echo -n $NTOPNG_PASSWORD | md5sum | cut -c 1-32` ++ NTOPNG_PASSWORD_MD5=`echo -n $NTOPNG_PASSWORD | md5 | cut -c 1-32` + return 0 + } + |