minor fixes, one task added

This commit is contained in:
Alexander Dobdin 2015-06-13 23:57:08 +03:00
parent d8bcaeadd1
commit 7eb59a6447
4 changed files with 7 additions and 5 deletions

View File

@ -1 +1,2 @@
ceph mon_status
ceph mon_status

View File

@ -20,3 +20,4 @@ To-Do
* When it doesn't help
* Separate extended role from once by role
* Merge bash-functions for logging

4
env.sh
View File

@ -58,7 +58,3 @@ function elog
{
echo -e "$(date --utc) $1" | column -s "|" -t >> "$errlog"
}
ccdir "${logd}"
ccdir "${infod}"
ccdir "${template}"

View File

@ -17,6 +17,10 @@
# Set environment variables for the environment
source ./env.sh
ccdir "${logd}"
ccdir "${infod}"
ccdir "${template}"
[ -e "$errlog" ] && cat "$errlog" >> "$errlog.old" && rm -f "$errlog"
[ -e "$noticelog" ] && cat "$noticelog" >> "$noticelog.old" && rm -f "$noticelog"