Unofficial guide to update on Linux

  • Thanks to CD's developer for the mention! (Sorry I don't know your name)

    As there is no official guide to update on Linux yet, I have made one of my own. I hope it helps someone.
    Disclaimer: Use this at your own risk!
    I had used this method successfully in an Ubuntu 16.04.1 LTS box

    Note: CloneDeploy upgrades are incremental. Only 1.1.x can be directly upgraded to CloneDeploy 1.2.0. DO NOT attempt to upgrade from 1.0.x to 1.2.0. You must first upgrade to 1.1.x
    Recommended before the upgrade: Update your linux box:
    [code]sudo apt update && sudo apt upgrade
    sudo reboot #(if necessary)[/code]

    1. sudo su
    2. Download and unzip to your home folder:
      [code]wget --content-disposition -P ~ 1.2.0/[/code]
      [code]unzip ~/ -d ~[/code]
    3. Update tftpboot:
      [code]cp -r ~/clonedeploy-1.2.0-upgrade/tftpboot/* /tftpboot[/code]
    4. Stop Apache service:
      [code]service apache2 stop[/code]
    5. Rename CloneDeploy folder:
      [code]mv /var/www/html/clonedeploy{,.bak}[/code]
    6. Copy the new CloneDeploy folder:
      [code]cp -r ~/clonedeploy-1.2.0-upgrade/web /var/www/html/clonedeploy[/code]
    7. Copy the old config from the old folder to the new CD folder:
      [code]cp /var/www/html/clonedeploy.bak/web.config /var/www/html/clonedeploy/[/code]
    8. Repair permissions in CD folder:
      [code]chown www-data.www-data /var/www/html/clonedeploy[/code]
    9. Backup CD database (enter your database password when prompted):
      [code]mysqldump clonedeploy -v -u root -p > ~/cdbackup.sql[/code]
    10. Update CD database (enter your database password when prompted):
      [code]mysql clonedeploy -v -u root -p < ~/clonedeploy-1.2.0-upgrade/1.2.0-update.sql[/code]
    11. Restart Apache service:
      [code]service apache2 start[/code]
    12. Log in and check that it shows the updated version and that everithing works ok:
      Note: You may need to clear your browser’s cache to reflect the new web design
    13. Delete temporal files and exit from sudo:
      [code]rm -rf ~/clonedeploy-1.2.0-upgrade
      rm ~/
      rm ~/cdbackup.sql

    I hope there is no writing errors! 🙂


  • As always, thanks for your contributions. This is now available here.