Keep your ConHive Agent current with the latest features and security enhancements. This guide details the update process using our robust update script.
The update script is designed to safely upgrade your ConHive Agent by backing up the current binary, downloading the new version, validating it, and then replacing the old binary.
Download the Update Script:
wget https://conhive.ai/hub/update_conhive_agent.sh -O update_conhive_agent.sh
Make the Script Executable:
chmod +x update_conhive_agent.sh
Run the Update Script:
sudo ./update_conhive_agent.sh <VERSION>
<VERSION>
with the target version (e.g., v1.2.3
).Verify the Update:
Confirm that the agent has been updated by checking its version:
/usr/local/bin/conhive-agent -version
The update script performs the following steps:
Stop the Service:
The ConHive Agent service is stopped to ensure a safe update process.
Backup the Binary:
A backup of the current binary is created and stored in the installation directory.
Download the New Version:
The script downloads the specified version from the official server.
Validate the Binary:
The downloaded binary is checked for integrity and authenticity.
Replace the Binary:
The old binary is replaced with the new, validated version.
Restart the Service:
The ConHive Agent service is restarted to apply the update.
Rollback on Failure:
If any step fails, the script will restore the previous binary from the backup and restart the service to ensure continuity.
For troubleshooting or if you need to perform a manual update, please contact Support.