Eli Mesika has uploaded a new change for review. Change subject: core: fixing restore.sh log file location ......................................................................
core: fixing restore.sh log file location Setting default log file to be under /var/log/ovirt-engine if this directory exists Change-Id: I3cd0742896e2fb5cfa79c75147ced47b94c37155 Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1030834 Signed-off-by: Eli Mesika <[email protected]> --- M packaging/dbscripts/dbcustomfunctions.sh 1 file changed, 6 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/25/22425/1 diff --git a/packaging/dbscripts/dbcustomfunctions.sh b/packaging/dbscripts/dbcustomfunctions.sh index 2b249a2..c05c783 100755 --- a/packaging/dbscripts/dbcustomfunctions.sh +++ b/packaging/dbscripts/dbcustomfunctions.sh @@ -14,7 +14,12 @@ DATABASE="engine" USERNAME="engine" VERBOSE=false - LOGFILE="$ME.log" + LOGDIR="/var/log/ovirt-engine" + if [ -d ${LOGDIR} ]; then + LOGFILE="${LOGDIR}/$ME.log" + else + LOGFILE="$ME.log" + fi DBOBJECT_OWNER="engine" NOMD5="false" MD5DIR="$(pwd)" -- To view, visit http://gerrit.ovirt.org/22425 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I3cd0742896e2fb5cfa79c75147ced47b94c37155 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Eli Mesika <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
