Skip to main content

Manager Upgrade

Note
  1. Upgrading the manager may change the server ID. If it changes, update the license key promptly.
  2. This guide uses /usr/local/MDPrivateDeployment/ as the manager installation directory. Adjust the paths if you use a custom directory.
  1. Download the Latest Manager

    wget https://pdpublic.mingdao.com/private-deployment/7.5.3/mingdaoyun_private_deployment_captain_linux_amd64.tar.gz
  2. Stop the Services

    Open the existing manager directory and stop the manager and HAP services:

    cd /usr/local/MDPrivateDeployment/
    bash ./service.sh stopall
  3. Move the Old Manager Directory

    After the services have stopped and the package has downloaded, rename the old directory:

    mv /usr/local/MDPrivateDeployment /usr/local/MDPrivateDeployment.bak-$(date +%Y%m%d%H%M%S)
  4. Create the Directory and Extract the New Manager

    mkdir -p /usr/local/MDPrivateDeployment/
    tar -zxvf mingdaoyun_private_deployment_captain_linux_amd64.tar.gz -C /usr/local/MDPrivateDeployment/

    If you use a custom data path, set installDir in the new service.sh to the original path before starting the services.

  5. Mark the Manager as Initialized

    Run in the new manager directory:

    cd /usr/local/MDPrivateDeployment/
    echo -n 'StageStart' > installer.stage
  6. Start the Services

    Start the manager and HAP services in the new manager directory:

    bash ./service.sh startall