Changeset 2800 in /cluster/svnroot


Ignore:
Timestamp:
Nov 4, 2010 9:32:51 PM (10 years ago)
Author:
skylar
Message:

get xsum file from tar ball (#550), kill pkbcast and bccd-allowall when denying hosts (#551)

Location:
bccd-ng/branches/skylar-devel
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/branches/skylar-devel/bin/setup_dev_vm

    r2798 r2800  
    5151fi
    5252
    53 FILE=bccd-vboxdev.${ARCH}.tar.bz2
    54 IMG_URL="http://bigfe.cluster.earlham.edu/bccd-vboxdev/${FILE}"
     53BASENAME=bccd-vboxdev.${ARCH}
     54TAR_FILE=${BASENAME}.tar.bz2
     55VDI_FILE=${BASENAME}.vdi
     56IMG_URL="http://bigfe.cluster.earlham.edu/bccd-vboxdev/${TAR_FILE}"
    5557VDI_PATH=/var/lib/vbox
    5658VBDEV_NAME=bccd-vboxdev
     
    6062fi
    6163
     64XSUM_FILE=$(wget -q -O - -c ${IMG_URL}|tar -C ${VDI_PATH} -xjvf -|grep \.md5$)
    6265pushd ${VDI_PATH}
    63 wget -c ${IMG_URL}{,.md5}
    64 md5sum -c ${FILE}.md5
     66md5sum -c ${XSUM_FILE}
    6567popd
    6668
     
    8082
    8183VBoxManage storagectl ${VBDEV_NAME} --name sata0 --add sata \
    82         --controller IntelAHCI --sataportcount 4 
     84        --controller IntelAHCI --sataportcount 4
    8385
    84 VBoxManage openmedium disk ${VDI_PATH}/${FILE}
     86VBoxManage openmedium disk ${VDI_PATH}/${VDI_FILE}
    8587
    86 VBoxManage storageattach ${VBDEV_NAME}--storagectl sata0 --port 0 --type hdd --medium ${VDI_PATH}/${FILE} --device 0
     88VBoxManage storageattach ${VBDEV_NAME}--storagectl sata0 --port 0 --type hdd --medium ${VDI_PATH}/${VDI_FILE} --device 0
  • bccd-ng/branches/skylar-devel/trees/bin/bccd-denyall

    r2751 r2800  
    3434                rm ~/.ssh/authorized_keys
    3535                cat ~/.ssh/*.pub > ~/.ssh/authorized_keys
     36                killall -u $(whoami) bccd-allowall pkbcast
    3637        fi
    3738else
    3839        rm ~/.ssh/authorized_keys
    3940        cat ~/.ssh/*.pub > ~/.ssh/authorized_keys
     41        killall -u $(whoami) bccd-allowall pkbcast
    4042fi
    4143clear
Note: See TracChangeset for help on using the changeset viewer.