Commit 692032f2 authored by Cédric BRINER's avatar Cédric BRINER Committed by Cédric BRINER
Browse files

sync: create sync_logs if needed

parent e698053b
......@@ -2103,7 +2103,9 @@ case "$1" in
mkdir /${IDP_HOME}/sync_logs/
if [[ ! -d /${IDP_HOME}/sync_logs/ ]]; then
mkdir /${IDP_HOME}/sync_logs/
echo "RESTART_DAEMON(${RESTART_DAEMON}) Host(${host})"
sync "${host}" | tee /${IDP_HOME}/sync_logs/$(date "+%Y.%m.%d_%Hh%Mm_%A").txt.out
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