Next: , Previous: , Up: Scripts   [Contents][Index]


5.2.8 bind-unbind

These 2 scripts mount and unmount both gitbare and cache directories into the chroot jail, using the bind option (see man 8 mount). They enable or disable remote meta-data upgrades and remote data copies when SERVER (see Server) respectively start or stop.

Process conceptual model:

mediatex-figures/bind-unbind

see init-remove-purge:

/
|- var/
   +- lib/
    |  +- mediatex/
    |     +- mdtx/                       (1)
    |       +- mdtx/
    |          |- mdtx.conf,v 
    |          +- supports.txt,v
    +- cache/
       +- mediatex/
          +- mdtx/
             |- cache/                   (2)
             +- jail/
                +- var/
                   |- lib        (bind -> 1)
                   |- cache      (bind -> 2)

Code:

scripts/bind.sh
scripts/unbind.sh
scripts/lib/jail.sh