def get(self): # TODO check auth updater = AutoUpdater( settings.GIT_BRANCH, get_git_root(__file__), ) updater.run() # We should never come here because of the restart return self.render_json({'status': 'error'})
def read_values(): AutoUpdater( 'master', get_git_root(__file__), 'systemctl restart sensor_communicator', ).run(restart=True)
def self_update(): AutoUpdater( 'master', get_git_root(__file__), ).run()