Eli Mesika has uploaded a new change for review.

Change subject: core: backup.sh use template1 instead ...(#870056)
......................................................................

core: backup.sh use template1 instead ...(#870056)

backup.sh use template1 instead of template0(#870056)

Database creation scripts are using template1 database, this may result
in a locale conflict when we are using UTF8 and the template 1 is
configured with ASCII.

Change-Id: I1ea6938f091776002c3e46f68f96993efd1c2d6b
Signed-off-by: Eli Mesika <[email protected]>
Bug-Url:https://bugzilla.redhat.com/show_bug.cgi?id=870056
---
M backend/manager/dbscripts/create_db.sh
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/23/8823/1

diff --git a/backend/manager/dbscripts/create_db.sh 
b/backend/manager/dbscripts/create_db.sh
index d0a1fb9..21a5f18 100755
--- a/backend/manager/dbscripts/create_db.sh
+++ b/backend/manager/dbscripts/create_db.sh
@@ -45,7 +45,7 @@
 printf "Creating the database: ${DATABASE}\n"
 #try to drop the database first (if exists)
 dropdb --username=${USERNAME} --host=${SERVERNAME} --port=${PORT} ${DATABASE} 
-e > /dev/null
-createdb --username=${USERNAME} --host=${SERVERNAME} --port=${PORT} 
${DATABASE} -e -E UTF8 > /dev/null
+createdb --username=${USERNAME} --host=${SERVERNAME} --port=${PORT} 
${DATABASE} -e -E UTF8 -T template0 > /dev/null
 if [ $? -ne 0 ]
     then
       printf "Failed to create database ${DATABASE}\n"


--
To view, visit http://gerrit.ovirt.org/8823
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1ea6938f091776002c3e46f68f96993efd1c2d6b
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

Reply via email to