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=1069714 Signed-off-by: Eli Mesika <emes...@redhat.com> --- M packaging/dbscripts/dbcustomfunctions.sh 1 file changed, 6 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/33/25033/1 diff --git a/packaging/dbscripts/dbcustomfunctions.sh b/packaging/dbscripts/dbcustomfunctions.sh index caee9bd..1f38e70 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/25033 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I3cd0742896e2fb5cfa79c75147ced47b94c37155 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: ovirt-engine-3.3 Gerrit-Owner: Eli Mesika <emes...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches