Next: addUser-delUser, Previous: cronHourly-cronDaily, Up: Scripts [Contents][Index]
These 3 scripts manage MEDIATEX’s installation (install, remove and purge).
“remove.sh
” only uninstall the software but
do not touch to the collection’s meta-data so as to ease an upgrade
by installing a new software version
(called by DEBIAN’s postrm
script for instance).
Process conceptual model:
# /usr/share/mediatex/scripts/init.sh
# /usr/share/mediatex/scripts/remove.sh
# /usr/share/mediatex/scripts/purge.sh
from CLIENT (see Client)
mdtx
system user and 2 system groups:
mdtx
server’s user and group
mdtx_md
common group for all collections related to the server
unbind()
to bind-unbind (see bind-unbind):
# /etc/init.d/mediatexd start
# /etc/init.d/mediatexd stop
to init.d (see init.d): start/stop the MEDIATEX daemon.
$ git init --bare
$ git config
to Git (see Git): initialise the GIT repository dedicated to the local configuration.
eventToolsApacheReload
eventToolsApacheRestart
to Apache (see Apache): make APACHE aware of potential new module and system users this script has configured.
/ |- etc/ | +- mediatex/ | + mdtx.conf (symlink -> 3) |- var/ +- lib/ | +- mediatex/ | +- mdtx/ (1) | +- mdtx/ | |- mdtx.conf | +- supports.txt +- cache/ +- mediatex/ +- mdtx/ |- cache/ (2) |- git/ | +- mdtx/ | |- mdtx.conf (3) | +- supports.txt |- jail/ | +- etc/ | | |- group | | +- passwd | +- usr/ | | +- bin/ | | |- git | | +- scp | +- var/ | |- lib (bind -> 1) | |- cache (bind -> 2) |- md5sums/ |- public_html | |- index.html | +- viewvc.cgi |- tmp/ +- viewvc.conf
Code:
Next: addUser-delUser, Previous: cronHourly-cronDaily, Up: Scripts [Contents][Index]