docs: def migrate_2_node4():
      '''
          Migrate existing cozy to node4
      '''
      helpers.cmd_exec('npm install -g cozy-monitor cozy-controller',
                       show_output=True)
      helpers.cmd_exec('update-cozy-stack', show_output=True)
      helpers.cmd_exec('update-all', show_output=True)
      helpers.cmd_exec('rm /etc/supervisor/conf.d/cozy-indexer.conf',
                       show_output=True)
      helpers.cmd_exec('supervisorctl reload', show_output=True)
      helpers.wait_cozy_stack()
      ssl.normalize_cert_dir()
      helpers.cmd_exec('apt-get update', show_output=True)
      helpers.cmd_exec(
          'echo "cozy cozy/nodejs_apt_list text " | debconf-set-selections',
          show_output=True)
      helpers.cmd_exec('apt-get install -y cozy-apt-node-list', show_output=True)
      helpers.cmd_exec('apt-get update', show_output=True)
      helpers.cmd_exec('apt-get remove -y nodejs-legacy', show_output=True)
      helpers.cmd_exec('apt-get remove -y nodejs-dev', show_output=True)
      helpers.cmd_exec('apt-get remove -y npm', show_output=True)
      helpers.cmd_exec('apt-get install -y nodejs', show_output=True)
      helpers.cmd_exec('apt-get install -y cozy', show_output=True)
      helpers.cmd_exec('npm install -g cozy-monitor cozy-controller',
                       show_output=True)
      rebuild_app('data-system')
      rebuild_app('home')
      rebuild_app('proxy')
      helpers.cmd_exec('supervisorctl restart cozy-controller', show_output=True)
      helpers.wait_cozy_stack()
      rebuild_all_apps(restart=True)
      restart_stopped_apps()
      helpers.cmd_exec('apt-get install -y cozy', show_output=True)