Auto Mount Directory for Each New Website

Discussion in 'Installation/Configuration' started by donnicky, Sep 22, 2017.

  1. donnicky

    donnicky New Member

    Hi,
    I would like to auto mount a directory which is outside of the web env of the specific website into the webt env of the website and this process to be automated for each new user(website) and all mounts for each user(website) to be saved in /etc/fstab.
    Example:
    Manually I mount /var/www/test to be available for client9, web5:
    mount /var/www/test /var/www/clients/client9/web5/test -o bind
    So, I want this process to be automated and for each new client, the same /var/www/test to be mounted to the same location, example:
    /var/www/clients/client12/web7/test
    /var/www/clients/clientX/webX/test and so on.

    Please advice.
    Thanks in advance.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Create a small ispconfig server plugin which binds itself to the website insert command that creates this bind mount.
     
  3. donnicky

    donnicky New Member

    Could you be more specific?
     

Share This Page