Axigen patches update script - Linux

Our support team have generated a bash script to ease installation of Axigen minor updates (Axigen binary, WebMail, and WebAdmin) on Linux.

axigen-update.sh (use ‘Save-As’ to save the script locally)

SHA1: fccb4584126731509575289ac1a6b3cb38bedbd3

After saving the script on the Axigen Server / VM, make sure you make it executable: chmod +x axigen-update.sh

Usage: ./axigen-update.sh <SERVICE_NAME>

Because this script will restart the Axigen service, we strongly recommend to run it during a maintenance window.

Procedure for Updating Docker Containers
For Docker installs please use the below procedure:

  1. place the update script axigen-update.sh in the folder where Axigen Working Directory (/var/opt/axigen) is mounted on your disk
  2. using the below command run the script
    # docker exec -it <CONTAINER-ID> sh /var/opt/axigen/axigen-update.sh docker
  3. restart the Axigen docker container using:
    # docker restart axigen

The CONTAINER-ID can be obtained using:
# docker ps -a

:warning: Note that this script is not suitable for High-availability cluster installations.

Feel free to express your feedback about this script here or by contacting support team.

Updated: 2024-11-11T22:00:00Z

2 Likes

Ok…I’m having trouble running this script.

  1. First it downloaded RAW!! So, I just selected the text and and named a file axigen-update.sh
  2. Ran said file ./axigen-update.sh
  3. Results:
    m@mx:/home/m# ./axigen-update.sh /opt/axigen/bin/axigen
    bash: ./axigen-update.sh: Permission denied

…???

Hello,

Before running the script make the script file executable. The commands should be similar with:

chmod +x axigen-update.sh
./axigen-update.sh axigen

Regards,
Florin

2 Likes

Wonderful, thanks for the script. It makes updating a lot more easier. :grinning:

1 Like

Note: this script requires which and curl to be installed on your system.

Stay tuned - both dependencies will be removed on next release :wink:

2 Likes

Awesome, this script will replace my own Shellscript I’ve created some time ago. :tada:

Will this script also get published on your public github account like the automation tools?
This could simplify the deployment for some of us (ex. git clone).

The scrip is great! However :slight_smile: it would be nicer to have an updated .deb, .rpm and us that to install :slight_smile:

Why isn’t just possible to use docker pull and get a new image with the patches applied?

Hello,

Currently a new docker image is created only when a new Axigen version is available (like for .rpm and .deb installers and all the other supported deployment methods). If and when the deployment policy will be changed we’ll announce via our newsletters.

HTH,
Ioan

Hello,
I’m using Linux / x64 , WebAdmin version 10.2.2.70.0 , We need auto update option of Axigen patches update .
Just one click the option, it will be auto update !!!

Helal Uddin

My apologies for not being a linux guru but this would have been much easier if your example had actually said

  ./axigen-update.sh axigen

rather than

 ./axigen-update.sh <SERVICE_NAME>

or even let the script run without a parameter and just prompt with a list of supported services.

Just my two cents

Hi,

Do you have the same script for upgrading active/passive setup?

Thank you

1 Like

Is there update to this script? Because after updating axigen to X4, I get this:

DEB based distro detected

Axigen binary detected: /opt/axigen/bin/axigen
Axigen working directory detected: /var/opt/axigen

sed: can’t read /var/opt/axigen/webmail/default/config.hsp: No such file or directory
sed: can’t read /var/opt/axigen/webadmin/config.hsp: No such file or directory
Axigen binary version: 10.4.1
Webmail interface version:
Webadmin interface version:

Your current version (10.4.1) have no available patches

1 Like

Hello,

The update script is not supporting the new installation method introduced by X4 (via deb or rpm packages).

HTH,
Ioan

axigen_update.sh.txt (819 Bytes)
Here is a little script i wrote to retrieve last version if you want

How can we update Axigen version 4 with docker? The script does not exist.