Skip to content

Missing quotes in mail encrypt script #748

@JiiPee74

Description

@JiiPee74

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions