NATGWIP=`ctdb natgwlist | head -1 | sed -e "s/^[^ ]* *//"`
CTDB_NATGW_PUBLIC_IP_HOST=`echo $CTDB_NATGW_PUBLIC_IP | sed -e "s/\/.*/\/32/"`
- if [ "$NATGWMASTER" == "-1" ]; then
+ if [ "$NATGWMASTER" = "-1" ]; then
echo "There is not NATGW master node"
exit 1
fi
stat -c%y "$lckf"
return 1
}
- kill -0 $pid && {
+ /bin/kill -0 $pid && {
lock_debug "lock file $lckf is valid for process $pid"
stat -c%y "$lckf"
return 1
#echo "run it: end"
}
- echo -e "#!/bin/sh\n#\n" > $_script
+ echo '#!/bin/sh' > $_script
+ echo '#' >> $_script
+ echo >> $_script
+
chmod +x $_script
return 0;
run_release_script_once $release_script
- echo -e "#!/bin/sh\n#\n" > $setup_script
+ echo '#!/bin/sh' > $setup_script
+ echo '#' >> $setup_script
+ echo >> $setup_script
chmod +x $setup_script
return 0;