xen-drbd

diff INSTALL @ 26:e859a316802b

fixes + debug
author igor
date Tue Feb 19 19:11:25 2008 +0200 (2008-02-19)
parents 7af6c8ecdf0c
children fc4025aa8287
line diff
     1.1 --- a/INSTALL	Mon Nov 12 10:45:09 2007 +0200
     1.2 +++ b/INSTALL	Tue Feb 19 19:11:25 2008 +0200
     1.3 @@ -1,8 +1,21 @@
     1.4  #!/bin/sh
     1.5  
     1.6  ROOT=/
     1.7 -DEST_DIR=/usr/bin
     1.8 +DEST_DIR=/usr/local/sbin
     1.9  
    1.10 +echo -------------------------------------------------
    1.11 +echo Installation of xen-drbd to $ROOT$DEST_DIR
    1.12 +echo -------------------------------------------------
    1.13 +set -x
    1.14 +cp xen-drbd.py ${ROOT}/${DEST_DIR}
    1.15 +cp xen-drbd-install.py ${ROOT}/${DEST_DIR}
    1.16 +set +x
    1.17 +
    1.18 +echo -------------------------------------------------
    1.19 +echo Installing of xen-drbd configs and boot scripts to /etc:
    1.20 +echo -------------------------------------------------
    1.21 +
    1.22 +set -x
    1.23  cp init.d-xen-drbd ${ROOT}/etc/init.d/xen-drbd
    1.24  chmod +x ${ROOT}/etc/init.d/xen-drbd
    1.25  
    1.26 @@ -11,18 +24,21 @@
    1.27  
    1.28  cp default-xen-drbd ${ROOT}/etc/default/xen-drbd
    1.29  cp xen-drbd-start.py ${ROOT}/etc/xen/xen-drbd-start
    1.30 -cp xen-drbd.py ${ROOT}/${DEST_DIR}
    1.31 +set +x
    1.32 +
    1.33  
    1.34  for i in 2 3 4 5
    1.35  do
    1.36 -	ln -sf ../init.d/xen-drbd ${ROOT}/etc/rc$i.d/S95xen-drbd
    1.37 -	#rm /etc/rc$i.d/S22xen-drbd
    1.38 +    set -x
    1.39 +    ln -sf ../init.d/xen-drbd ${ROOT}/etc/rc$i.d/S95xen-drbd
    1.40 +    set +x
    1.41  done
    1.42  
    1.43  for i in 0 1 6
    1.44  do
    1.45 -	ln -sf ../init.d/xen-drbd ${ROOT}/etc/rc$i.d/K05xen-drbd
    1.46 -	#rm /etc/rc$i.d/K21xen-drbd
    1.47 +    set -x
    1.48 +    ln -sf ../init.d/xen-drbd ${ROOT}/etc/rc$i.d/K05xen-drbd
    1.49 +    set +x
    1.50  done
    1.51  
    1.52