* add ConnectionFactoryTest and ConnectionFactory read datasource from appliction.yml
* .escheduler_env.sh to dolphinscheduler_env.sh
* dao yml assembly to conf directory
* table name modify
* entity title table name modify
* logback log name modify
* running through the big process
* running through the big process error modify
* logback log name modify
* data_source.properties rename
* logback log name modify
* install.sh optimization
* install.sh optimization
* command count modify
* command state update
* countCommandState sql update
* countCommandState sql update
* remove application.yml file
* master.properties modify
* install.sh modify
* install.sh modify
# Note: if there are special characters, please use the \ transfer character to transfer
passowrd="xx"
# 1,replace file
# 1,replace file
echo"1,replace file"
echo"1,replace file"
if[$dbtype=="mysql"];then
if[$dbtype=="mysql"];then
sed -i ${txt}"s#spring.datasource.url.*#spring.datasource.url=jdbc:mysql://${dbhost}/${dbname}?characterEncoding=UTF-8#g" application.properties
sed -i ${txt}"s#spring.datasource.url.*#spring.datasource.url=jdbc:mysql://${dbhost}/${dbname}?characterEncoding=UTF-8#g" conf/application.properties
sed -i ${txt}"s#spring.datasource.username.*#spring.datasource.username=${username}#g" application.properties
sed -i ${txt}"s#spring.datasource.username.*#spring.datasource.username=${username}#g" conf/application.properties
sed -i ${txt}"s#spring.datasource.password.*#spring.datasource.password=${passowrd}#g" application.properties
sed -i ${txt}"s#spring.datasource.password.*#spring.datasource.password=${passowrd}#g" conf/application.properties
sed -i ${txt}"s#spring.datasource.driver-class-name.*#spring.datasource.driver-class-name=com.mysql.jdbc.Driver#g" application.properties
sed -i ${txt}"s#spring.datasource.driver-class-name.*#spring.datasource.driver-class-name=com.mysql.jdbc.Driver#g" conf/application.properties
sed -i ${txt}"s#org.quartz.dataSource.myDs.URL.*#org.quartz.dataSource.myDs.URL=jdbc:mysql://${dbhost}/${dbname}?characterEncoding=UTF-8#g" conf/quartz.properties
sed -i ${txt}"s#org.quartz.dataSource.myDs.URL.*#org.quartz.dataSource.myDs.URL=jdbc:mysql://${dbhost}/${dbname}?characterEncoding=UTF-8#g" conf/quartz.properties
@ -325,10 +311,10 @@ if [ $dbtype == "mysql" ];then
fi
fi
if[$dbtype=="postgresql"];then
if[$dbtype=="postgresql"];then
sed -i ${txt}"s#spring.datasource.url.*#spring.datasource.url=jdbc:postgresql://${dbhost}/${dbname}?characterEncoding=UTF-8#g" application.properties
sed -i ${txt}"s#spring.datasource.url.*#spring.datasource.url=jdbc:postgresql://${dbhost}/${dbname}?characterEncoding=UTF-8#g"conf/application.properties
sed -i ${txt}"s#spring.datasource.username.*#spring.datasource.username=${username}#g" application.properties
sed -i ${txt}"s#spring.datasource.username.*#spring.datasource.username=${username}#g"conf/application.properties
sed -i ${txt}"s#spring.datasource.password.*#spring.datasource.password=${passowrd}#g" application.properties
sed -i ${txt}"s#spring.datasource.password.*#spring.datasource.password=${passowrd}#g"conf/application.properties
sed -i ${txt}"s#spring.datasource.driver-class-name.*#spring.datasource.driver-class-name=org.postgresql.Driver#g" application.properties
sed -i ${txt}"s#spring.datasource.driver-class-name.*#spring.datasource.driver-class-name=org.postgresql.Driver#g"conf/application.properties
sed -i ${txt}"s#org.quartz.dataSource.myDs.URL.*#org.quartz.dataSource.myDs.URL=jdbc:mysql://${dbhost}/${dbname}?characterEncoding=UTF-8#g" conf/quartz.properties
sed -i ${txt}"s#org.quartz.dataSource.myDs.URL.*#org.quartz.dataSource.myDs.URL=jdbc:mysql://${dbhost}/${dbname}?characterEncoding=UTF-8#g" conf/quartz.properties
sed -i ${txt}"s#org.quartz.dataSource.myDs.user.*#org.quartz.dataSource.myDs.user=${username}#g" conf/quartz.properties
sed -i ${txt}"s#org.quartz.dataSource.myDs.user.*#org.quartz.dataSource.myDs.user=${username}#g" conf/quartz.properties