mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-05 21:59:29 +08:00
bbe7a256a8
* service start exception modify * master,worker start modify * .env update * install-escheduler-ui.sh,monitor_server.py and install.sh scripts comment change to english and install-escheduler-ui.sh use escheduler change to dolphinscheduler * scripts name standardization
24 lines
711 B
Bash
24 lines
711 B
Bash
#!/bin/sh
|
|
|
|
workDir=`dirname $0`
|
|
workDir=`cd ${workDir};pwd`
|
|
source $workDir/../conf/config/run_config.conf
|
|
source $workDir/../conf/config/install_config.conf
|
|
|
|
hostsArr=(${ips//,/ })
|
|
for host in ${hostsArr[@]}
|
|
do
|
|
|
|
if ! ssh $host test -e $installPath; then
|
|
ssh $host "sudo mkdir -p $installPath; sudo chown -R $deployUser:$deployUser $installPath"
|
|
fi
|
|
|
|
ssh $host "cd $installPath/; rm -rf bin/ conf/ lib/ script/ sql/"
|
|
scp -r $workDir/../bin $host:$installPath
|
|
scp -r $workDir/../conf $host:$installPath
|
|
scp -r $workDir/../lib $host:$installPath
|
|
scp -r $workDir/../script $host:$installPath
|
|
scp -r $workDir/../sql $host:$installPath
|
|
scp $workDir/../install.sh $host:$installPath
|
|
done
|