Update test.sh
This commit is contained in:
4
test.sh
4
test.sh
@@ -29,11 +29,11 @@ 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-%S`
|
daterun=`date +%Y-%m-%d-%H-%M-%S`
|
||||||
if [ "${NCMD}" = "" ]; then
|
if [ "${NCMD}" = "" ]; then
|
||||||
echo -e "iDS-Node${nid} (${nip})\n${daterun}" > ${FOLDER}/test.repl
|
echo -e "Status-Check (${NODE_HOSTNAME})\n${daterun}" > ${FOLDER}/test.repl
|
||||||
yes | cp -rfH ${FOLDER}/test.repl ${REPL_CHECKS[${rcheck}]}/test.repl
|
yes | cp -rfH ${FOLDER}/test.repl ${REPL_CHECKS[${rcheck}]}/test.repl
|
||||||
else
|
else
|
||||||
${NCMD} 'echo -e "iDS-Node${nid} (${nip})\n${daterun}" > ${FOLDER}/test.repl'
|
${NCMD} 'echo -e "iDS-Node${nid} (${nip})\n${daterun}" > ${FOLDER}/test.repl'
|
||||||
yes | ${NCMD} 'cp -rfH ${FOLDER}/test.repl ${REPL_CHECKS[${rcheck}]}/test.repl'
|
# yes | ${NCMD} 'cp -rfH ${FOLDER}/test.repl ${REPL_CHECKS[${rcheck}]}/test.repl'
|
||||||
fi
|
fi
|
||||||
echo "${FOLDER}/test.repl"
|
echo "${FOLDER}/test.repl"
|
||||||
${NCMD} 'cat ${FOLDER}/test.repl'
|
${NCMD} 'cat ${FOLDER}/test.repl'
|
||||||
|
|||||||
Reference in New Issue
Block a user