mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-05 13:17:42 +08:00
12 lines
382 B
Bash
12 lines
382 B
Bash
#!/bin/bash
|
|
|
|
mkdir -p /etc/goodrain/envs/
|
|
grep "MANAGE" /etc/goodrain/envs/ip.sh >/dev/null 2>&1
|
|
[ -f "/etc/goodrain/envs/rainbond-node.sh" ] && echo "" > /etc/goodrain/envs/rainbond-node.sh
|
|
if [ $? -eq 0 ];then
|
|
echo "NODE_TYPE=compute" >> /etc/goodrain/envs/rainbond-node.sh
|
|
else
|
|
echo "NODE_TYPE=" >> /etc/goodrain/envs/rainbond-node.sh
|
|
fi
|
|
|
|
echo "pre install rainbond-node" |