-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #6477: Create a script to sign files using openssl on unix #634
Fixes #6477: Create a script to sign files using openssl on unix #634
Conversation
FILE="$1" | ||
if [ ! -e "${FILE}" ] | ||
then | ||
echo "Cannot sign: The file ${FILE} doesn't exist" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing an "ERROR: " prefix here
I'd rather name this utility signature and not signature.sh :) the suffix is not desirable here nor needed ! Let the kernel use its shebang magic to handle the rest :p |
else | ||
echo "ERROR: openssl binary is missing !" | ||
exit 1 | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use:
if ! type openssl 2> /dev/null
then
echo "ERROR: openssl binary is missing !"
exit 1
fi
You'd avoid a useless "true"
There will be a signature.cmd for windows too, the .sh was here to explicitly distinguish which one will be for wich environment |
a0896a9
to
4c133a0
Compare
PR updated |
That's a good reason ! |
Would you be kind enough to retarget this PR for 3.1 ? |
Also this script should be able to try to use Rudder's bundled OpenSSL version if no system one is available (/opt/rudder/bin/openssl) |
…date_rudder_agent_thin_patches Fixes #6355: Update rudder-agent-thin Debian packages
…elinux_compatibility Fixes #6517: Add initial SELinux support
4c133a0
to
2b00078
Compare
PR replaced by #644 |
PR replaced by #644