Commit 22f63519 authored by Cédric BRINER's avatar Cédric BRINER Committed by Cédric BRINER
Browse files

sync: log from sync_logs to idp-tools_sync_logs & log also the stderr

parent 6148dbd9
......@@ -2001,11 +2001,11 @@ case "$1" in
host="${1}"
fi
#
if [[ ! -d /${IDP_HOME}/sync_logs/ ]]; then
mkdir /${IDP_HOME}/sync_logs/
if [[ ! -d /${IDP_HOME}/idp-tools_sync_logs/ ]]; then
mkdir /${IDP_HOME}/idp-tools_sync_logs/
fi
echo "RESTART_DAEMON(${RESTART_DAEMON}) Host(${host})"
sync "${host}" | tee /${IDP_HOME}/sync_logs/$(date "+%Y.%m.%d_%Hh%Mm_%A").txt.out
sync "${host}" 2>&1 | tee /${IDP_HOME}/idp-tools_sync_logs/$(hostname -s)_to_${host}_$(date "+%Y.%m.%d_%Hh%Mm").txt.out
;;
tungsten-watch-sync)
has_ssh_agent
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment