Merge lp:~rr.clearcorp/oerptools/2.0-oerp into lp:oerptools

Proposed by Ronald Rubi
Status: Merged
Merged at revision: 425
Proposed branch: lp:~rr.clearcorp/oerptools/2.0-oerp
Merge into: lp:oerptools
Diff against target: 44 lines (+5/-5)
2 files modified
bash/openerp-scripts/test-db/db-to-db.sh (+1/-1)
bash/openerp-scripts/test-db/openerp-test-db.sh (+4/-4)
To merge this branch: bzr merge lp:~rr.clearcorp/oerptools/2.0-oerp
Reviewer Review Type Date Requested Status
ClearCorp drivers Pending
Review via email: mp+154806@code.launchpad.net

Description of the change

[FIX] Fix alter table openerp-test-db.sh, change directory db-to-db.sh

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bash/openerp-scripts/test-db/db-to-db.sh'
2--- bash/openerp-scripts/test-db/db-to-db.sh 2012-01-24 00:04:16 +0000
3+++ bash/openerp-scripts/test-db/db-to-db.sh 2013-03-21 20:19:21 +0000
4@@ -3,7 +3,7 @@
5 touch /var/log/openerp/cp-db.log
6 chown openerp:openerp /var/log/openerp/cp-db.log
7
8-export OPENERP_CCORP_DIR="/usr/local/share/openerp-ccorp-scripts"
9+export OPENERP_CCORP_DIR="/usr/local/share/oerptools/bash"
10
11 cd / #Avoids the could not change directory to "/root" error
12
13
14=== modified file 'bash/openerp-scripts/test-db/openerp-test-db.sh'
15--- bash/openerp-scripts/test-db/openerp-test-db.sh 2012-06-27 04:34:04 +0000
16+++ bash/openerp-scripts/test-db/openerp-test-db.sh 2013-03-21 20:19:21 +0000
17@@ -20,8 +20,8 @@
18 # MA 02110-1301, USA.
19
20 if [[ ! -d $OPENERP_CCORP_DIR ]]; then
21- echo "openerp-ccorp-scripts not installed."
22- exit 1
23+ echo "openerp-ccorp-scripts not installed."
24+ exit 1
25 fi
26
27 #~ Libraries import
28@@ -38,7 +38,7 @@
29 server_name=openerp_$3
30 proc_name=${server_name:0:15}
31 if [[ `ps -A | grep -c $proc_name` -gt 0 ]]; then
32- killall -s KILL openerp_$3
33+ killall -s KILL openerp_$3
34 fi
35
36 # Re-create the database
37@@ -53,6 +53,6 @@
38
39 # Restart copy server
40 /etc/init.d/openerp-server-$3 start
41-sudo -u postgres psql -c "ALTER DATABASE $2 OWNER TO openerp_$3"
42+sudo -u postgres psql -c "ALTER DATABASE $2 OWNER TO openerp"
43
44 exit 0

Subscribers

People subscribed via source and target branches