xen-drbd

annotate INSTALL @ 25:50d097b46c8d

exec insted of print
author igor
date Tue Feb 19 18:32:26 2008 +0200 (2008-02-19)
parents 7af6c8ecdf0c
children fc4025aa8287
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@19 10 cp xen-drbd.py ${ROOT}/${DEST_DIR}
igor@19 11 cp xen-drbd-install.py ${ROOT}/${DEST_DIR}
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
igor@0 23 chmod +x /etc/xen/scripts/network-xen-drbd
igor@0 24
igor@6 25 cp default-xen-drbd ${ROOT}/etc/default/xen-drbd
igor@6 26 cp xen-drbd-start.py ${ROOT}/etc/xen/xen-drbd-start
igor@19 27 set +x
igor@19 28
igor@0 29
igor@0 30 for i in 2 3 4 5
igor@0 31 do
igor@19 32 set -x
igor@19 33 ln -sf ../init.d/xen-drbd ${ROOT}/etc/rc$i.d/S95xen-drbd
igor@19 34 set +x
igor@0 35 done
igor@0 36
igor@0 37 for i in 0 1 6
igor@0 38 do
igor@19 39 set -x
igor@19 40 ln -sf ../init.d/xen-drbd ${ROOT}/etc/rc$i.d/K05xen-drbd
igor@19 41 set +x
igor@0 42 done
igor@0 43
igor@0 44