xen-drbd
annotate INSTALL @ 43:562d6e064e6f
Install packages into domains (apt_get_install_table)
author | igor@manas.xt.vpn |
---|---|
date | Tue Sep 23 11:40:23 2008 +0300 (2008-09-23) |
parents | 128f4bc3f522 |
children | d3198c10cc10 |
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 |
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 |