Rainbond/hack/deb/debian-stretch/debian/gr-rainbond-node.preinst
2017-11-20 12:03:39 +08:00

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"