def update_stack(): ''' Update applications ''' supervisor.stop_process('cozy-controller') nodejs.update_package('cozy-controller') supervisor.start_process('cozy-controller') nodejs.update_package('cozy-monitor') sudo('cozy-monitor install data-system') sudo('cozy-monitor install home') sudo('cozy-monitor install proxy') print(green('Stack updated successfully.'))
def update_stack(): ''' Update applications ''' nodejs.update_package('cozy-controller') nodejs.update_package('cozy-monitor') if is_pi(): sudo('/etc/init.d/cozy-controller restart') else: supervisor.restart_process('cozy-controller') sudo('cozy-monitor update data-system') sudo('cozy-monitor update home') sudo('cozy-monitor update proxy') update_indexer() print(green('Stack updated successfully.'))
def update_stack(): ''' Update applications ''' nodejs.update_package('cozy-controller') nodejs.update_package('cozy-monitor') restart_controller() sudo('cozy-monitor update data-system') # we force the home to start because the controller waits before starting # it. sudo('cozy-monitor start home') sudo('cozy-monitor update home') sudo('cozy-monitor update proxy') update_indexer() print(green('Stack updated successfully.'))
def update_stack(): """ Update applications """ nodejs.update_package("cozy-controller") nodejs.update_package("cozy-monitor") restart_controller() sudo("cozy-monitor update data-system") # we force the home to start because the controller waits before starting # it. sudo("cozy-monitor start home") sudo("cozy-monitor update home") sudo("cozy-monitor update proxy") update_indexer() print(green("Stack updated successfully."))
def upgrade_to_node10(): ''' Upgrade the whole stack to node 0.10.26 ''' install_node10() nodejs.update_package('cozy-controller') nodejs.update_package('cozy-monitor') sudo('cozy-monitor uninstall data-system') sudo('cozy-monitor uninstall home') sudo('cozy-monitor uninstall proxy') restart_controller() sudo('cozy-monitor install data-system') sudo('cozy-monitor install home') sudo('cozy-monitor install proxy') sudo('rm -rf /usr/local/cozy/apps/*/*/*/node_modules') update_all_apps() restart_controller() print(green('Cozy successfully upgraded to node 0.10.26.'))
def upgrade_to_node10(): """ Upgrade the whole stack to node 0.10.26 """ install_nodejs() nodejs.update_package("cozy-controller") nodejs.update_package("cozy-monitor") sudo("cozy-monitor uninstall data-system") sudo("cozy-monitor uninstall home") sudo("cozy-monitor uninstall proxy") restart_controller() sudo("cozy-monitor install data-system") sudo("cozy-monitor install home") sudo("cozy-monitor install proxy") sudo("rm -rf /usr/local/cozy/apps/*/*/*/node_modules") update_all_apps() restart_controller() print(green("Cozy successfully upgraded to node 0.10.26."))