Update nodemgmt-scripts.sh
This commit is contained in:
@@ -28,7 +28,11 @@ STATUS() {
|
|||||||
for rcheck in "${REPL_CHECK[@]}"; do
|
for rcheck in "${REPL_CHECK[@]}"; do
|
||||||
${NCMD} rm -f ${FOLDER}/test.repl
|
${NCMD} rm -f ${FOLDER}/test.repl
|
||||||
daterun=`date +%Y-%m-%d-%H-%M`
|
daterun=`date +%Y-%m-%d-%H-%M`
|
||||||
${NCMD} 'echo -e "iDS-Node${nid} (${nip})\n${daterun}" > ${FOLDER}/test.repl'
|
if [ "${NCMD}" = "" ]; then
|
||||||
|
echo -e "iDS-Node${nid} (${nip})\n${daterun}" > ${FOLDER}/test.repl
|
||||||
|
else
|
||||||
|
${NCMD} 'echo -e "iDS-Node${nid} (${nip})\n${daterun}" > ${FOLDER}/test.repl'
|
||||||
|
fi
|
||||||
yes | ${NCMD} cp -rfH ${FOLDER}/test.repl ${REPL_CHECKS[${rcheck}]}/test.repl
|
yes | ${NCMD} cp -rfH ${FOLDER}/test.repl ${REPL_CHECKS[${rcheck}]}/test.repl
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user