Changeset 202 for drbl-virt/sbin/functions_drbl_virt
- Timestamp:
- Aug 30, 2010, 2:18:14 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
drbl-virt/sbin/functions_drbl_virt
r195 r202 83 83 # [Check Debian Xen package] 84 84 function check_debian_xen(){ 85 echo "[Check Xen package in apt server]" 86 echo "" 85 87 aptitude update 86 88 check_debian_xen_pkg=$(aptitude search xen-linux-system) … … 300 302 Xen_MAC_5="" 301 303 Xen_MAC_6="" 304 VM_Host_totoal_nu=$(cat $Work_Home/etc/IP_VM_$eth | wc -l) 302 305 303 306 # backup … … 307 310 308 311 # generate MAC 309 for (( i=1 ; i< "$VM_Host_totoal_nu" ; i++ ))312 for (( i=1 ; i<="$VM_Host_totoal_nu" ; i++ )) 310 313 do 311 314 if [ $i -lt 10 ]; then … … 325 328 fi 326 329 done 330 331 # delete tmp file 332 rm /tmp/drbl-virt_MAC 327 333 } 328 334 … … 403 409 404 410 } 411 412 413 # [Creat drbl-virter user] 414 function creat_drbl-virter(){ 415 useradd -m -s /bin/bash drbl-virter 416 } 417 418 419 # [Download tomcat and mv drbl-virt.wat to wepapps] 420 function install_tomcat_and_mv_drbl-virt(){ 421 if [ ! -e $Work_Home/tomcat-7.0.2.tar.gz ]; then 422 wget http://drbl-virt.googlecode.com/files/tomcat-7.0.2.tar.gz -P $Work_Home 423 fi 424 tar zxvf $Work_Home/tomcat-7.0.2.tar.gz -C $Work_Home/ 425 mv $Work_Home/drbl-virt.war $Work_Home/tomcat-7.0.2/webapps/ 426 chown -R drbl-virter.drbl-virter $Work_Home/tomcat-7.0.2 427 su drbl-virter -c "$Work_Home/tomcat-7.0.2/bin/startup.sh" 428 }
Note: See TracChangeset
for help on using the changeset viewer.