[Module development] How to trigger resync function by CLI command?

Discussion in 'Plugins/Modules/Addons' started by manoaratefy, Jun 23, 2020.

  1. manoaratefy

    manoaratefy New Member

    Good morning,
    I'm building a script for One-click installation of my Varnish plugin. I currently want to trigger the resync function of all websites (under ISPconfig > Tools > Resync in the UI) but by CLI command.
    Is there a way to achieve this?
    Thanks in advance.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    There is no cli command for that.
     
  3. manoaratefy

    manoaratefy New Member

    I know, but is there a way to add this task (by the database for example) to be processed by /usr/local/ispconfig/server/server.sh later?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Use the datalogUpdate function of the ISPConfig mysql library in the same way the ISPConfig resync function uses it.
     

Share This Page