| 1234567891011121314151617181920212223242526272829 |
- #!/bin/bash
- help(){
- echo "eg: $0 [dir]"
- echo ""
- exit 1
- }
- if [ ! -n "$1" ] ; then
- help
- fi
- c_home=$(cd `dirname $0`; pwd)
- sed -i 's/192.168.3.230 192.168.3.230/192.168.3.230 192.168.3.206/g' ${c_home}/$1/mysql-boot.sh
- sed -i 's/192.168.3.230 192.168.3.230/192.168.3.230 192.168.3.206/g' ${c_home}/$1/mysql.sh
- sed -i 's/192.168.3.230 192.168.3.230/192.168.3.230 192.168.3.206/g' ${c_home}/$1/mssql-boot.sh
- sed -i 's/192.168.3.230 192.168.3.230/192.168.3.230 192.168.3.206/g' ${c_home}/$1/mssql.sh
- sed -i 's/192.168.3.230 192.168.3.230/192.168.3.230 192.168.3.206/g' ${c_home}/$1/oracle-boot.sh
- sed -i 's/192.168.3.230 192.168.3.230/192.168.3.230 192.168.3.206/g' ${c_home}/$1/oracle.sh
- sed -i 's/192.168.3.230 192.168.3.230/192.168.3.230 192.168.3.206/g' ${c_home}/$1/postgre-boot.sh
- sed -i 's/192.168.3.230 192.168.3.230/192.168.3.230 192.168.3.206/g' ${c_home}/$1/postgre.sh
- sed -i 's/192.168.3.230/192.168.3.210/g' ${c_home}/$1/bin/env/platform.docker.env
- cp -f ${c_home}/license/* ${c_home}/$1/bin/license/
|