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
=== modified file 'bash/openerp-scripts/test-db/db-to-db.sh'
--- bash/openerp-scripts/test-db/db-to-db.sh 2012-01-24 00:04:16 +0000
+++ bash/openerp-scripts/test-db/db-to-db.sh 2013-03-21 20:19:21 +0000
@@ -3,7 +3,7 @@
3touch /var/log/openerp/cp-db.log3touch /var/log/openerp/cp-db.log
4chown openerp:openerp /var/log/openerp/cp-db.log4chown openerp:openerp /var/log/openerp/cp-db.log
55
6export OPENERP_CCORP_DIR="/usr/local/share/openerp-ccorp-scripts"6export OPENERP_CCORP_DIR="/usr/local/share/oerptools/bash"
77
8cd / #Avoids the could not change directory to "/root" error8cd / #Avoids the could not change directory to "/root" error
99
1010
=== modified file 'bash/openerp-scripts/test-db/openerp-test-db.sh'
--- bash/openerp-scripts/test-db/openerp-test-db.sh 2012-06-27 04:34:04 +0000
+++ bash/openerp-scripts/test-db/openerp-test-db.sh 2013-03-21 20:19:21 +0000
@@ -20,8 +20,8 @@
20# MA 02110-1301, USA.20# MA 02110-1301, USA.
2121
22if [[ ! -d $OPENERP_CCORP_DIR ]]; then22if [[ ! -d $OPENERP_CCORP_DIR ]]; then
23 echo "openerp-ccorp-scripts not installed."23 echo "openerp-ccorp-scripts not installed."
24 exit 124 exit 1
25fi25fi
2626
27#~ Libraries import27#~ Libraries import
@@ -38,7 +38,7 @@
38server_name=openerp_$338server_name=openerp_$3
39proc_name=${server_name:0:15}39proc_name=${server_name:0:15}
40if [[ `ps -A | grep -c $proc_name` -gt 0 ]]; then40if [[ `ps -A | grep -c $proc_name` -gt 0 ]]; then
41 killall -s KILL openerp_$341 killall -s KILL openerp_$3
42fi42fi
4343
44# Re-create the database44# Re-create the database
@@ -53,6 +53,6 @@
5353
54# Restart copy server54# Restart copy server
55/etc/init.d/openerp-server-$3 start55/etc/init.d/openerp-server-$3 start
56sudo -u postgres psql -c "ALTER DATABASE $2 OWNER TO openerp_$3"56sudo -u postgres psql -c "ALTER DATABASE $2 OWNER TO openerp"
5757
58exit 058exit 0

Subscribers

People subscribed via source and target branches