xen-drbd

annotate INSTALL @ 51:d3198c10cc10

minifix
author root@linux10
date Fri Oct 10 18:35:48 2008 +0000 (2008-10-10)
parents fc4025aa8287
children f7d6a94aa307
rev   line source
igor@0 1 #!/bin/sh
igor@0 2
igor@6 3 ROOT=/
igor@19 4 DEST_DIR=/usr/local/sbin
igor@0 5
igor@19 6 echo -------------------------------------------------
igor@19 7 echo Installation of xen-drbd to $ROOT$DEST_DIR
igor@19 8 echo -------------------------------------------------
igor@19 9 set -x
igor@30 10 cp xen-drbd.py ${ROOT}/${DEST_DIR}/xen-drbd
igor@30 11 cp xen-drbd-install.py ${ROOT}/${DEST_DIR}/xen-drbd-install
igor@19 12 set +x
igor@19 13
igor@19 14 echo -------------------------------------------------
igor@19 15 echo Installing of xen-drbd configs and boot scripts to /etc:
igor@19 16 echo -------------------------------------------------
igor@19 17
igor@19 18 set -x
igor@6 19 cp init.d-xen-drbd ${ROOT}/etc/init.d/xen-drbd
igor@6 20 chmod +x ${ROOT}/etc/init.d/xen-drbd
igor@0 21
igor@6 22 cp xen-scripts-network-xen-drbd $ROOT/etc/xen/scripts/network-xen-drbd
root@51 23 cp network-bridge-for-xen-drbd $ROOT/etc/xen/scripts/network-bridge-for-xen-drbd
igor@0 24 chmod +x /etc/xen/scripts/network-xen-drbd
igor@0 25
igor@6 26 cp default-xen-drbd ${ROOT}/etc/default/xen-drbd
igor@6 27 cp xen-drbd-start.py ${ROOT}/etc/xen/xen-drbd-start
igor@19 28 set +x
igor@19 29
igor@0 30
igor@0 31 for i in 2 3 4 5
igor@0 32 do
igor@19 33 set -x
igor@19 34 ln -sf ../init.d/xen-drbd ${ROOT}/etc/rc$i.d/S95xen-drbd
igor@19 35 set +x
igor@0 36 done
igor@0 37
igor@0 38 for i in 0 1 6
igor@0 39 do
igor@19 40 set -x
igor@19 41 ln -sf ../init.d/xen-drbd ${ROOT}/etc/rc$i.d/K05xen-drbd
igor@19 42 set +x
igor@0 43 done
igor@0 44
igor@0 45