Skip to content
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

Missing quotes in mail encrypt script #748

Open
JiiPee74 opened this issue Sep 6, 2024 · 0 comments
Open

Missing quotes in mail encrypt script #748

JiiPee74 opened this issue Sep 6, 2024 · 0 comments

Comments

@JiiPee74
Copy link

JiiPee74 commented Sep 6, 2024

Hi, long time ago when I first installed mailcow, I had to disable mail encryption because of reason I dont remember anymore.
Now I am migrating old centos 7 vps to new vps so I was thinking that I could now start using encryption becasue I did remember there was some script what can be used to do it later and I found it. I also found small issue with it.

if [[ $(head -c7 "$file") != "CRYPTED" ]]; then

if [[ $(head -c7 "$file") != "CRYPTED" ]]; then

Should be:

if [[ "$(head -c7 "$file")" != "CRYPTED" ]]; then

I was getting all sort of funny errors when I run it.

Same is most likely true with decrypt script

if [[ $(head -c7 "$file") == "CRYPTED" ]]; then

But I have not tested it because I do not need it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant