Skip to content

ms-configure 'unary operator expected' line 1077 #709

@IKatsu

Description

@IKatsu

I've been trying to get my aging mailscanner up to date (including OS) and I ran into some issues with the ms-configure script.
Due to the OS upgrade a bunch of perl packages were removed.
When running ms-configure --update the script will error on checking missing perl packages and not actually install them from cpan.
Specifying --installCPAN=Y does not work (ms-configure --update --installCPAN=Y
From what I can tell from reading the script is that it is SUPPOSED to enable 'cpan install' when just doing --update
It is just failing to set the CPANOPTION variable to 1.
I just manually put CPANOPTION=1 above line 1077 somewhere as a dirty workaround but it might be nice to have a proper fix.

Server (please complete the following information):

  • OS: Almalinux 9 (The new CentOS kinda)
  • Mandatory Access Control Enforcement: none
  • MailScanner Version: 5.5.3-2
  • OS Version: 9.6
  • Installation method: RPM from github.
  • Installation: Upgrade
  • Containerized: No

Additional context
This is a #yolo upgrade from CentOS 7 to AlmaLinux 9 (Via 8, yes I know, I should have done this ages ago)
As of writing this I'm not sure if it'll actually work, ms-config is still busy with all the dependencies but it seems to be doing alright.

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