[MAJOR]: change the system user for Mandriva to "openerp".
After this commit, systems MUST upgrade their installations. bzr revid: p_christ@hol.gr-20090613151559-4yffmcnpq8d36jas
This commit is contained in:
parent
fbd87ff960
commit
133d34b24c
|
@ -18,7 +18,7 @@ unix user name):
|
||||||
|
|
||||||
$ su -
|
$ su -
|
||||||
# su - postgres
|
# su - postgres
|
||||||
$ createuser tinyerp
|
$ createuser openerp
|
||||||
Shall the new user be allowed to create databases? (y/n) y
|
Shall the new user be allowed to create databases? (y/n) y
|
||||||
Shall the new user be allowed to create more new users? (y/n) y
|
Shall the new user be allowed to create more new users? (y/n) y
|
||||||
CREATE USER
|
CREATE USER
|
||||||
|
|
|
@ -0,0 +1,31 @@
|
||||||
|
Important note for OpenERP build >= 5.0.1-11xrg:
|
||||||
|
|
||||||
|
THE USERNAME HAS CHANGED!!
|
||||||
|
|
||||||
|
Former user "tinyerp" is now called "openerp".
|
||||||
|
|
||||||
|
|
||||||
|
For that, you will have to make sure the following files are chowned
|
||||||
|
to the new user:
|
||||||
|
|
||||||
|
/var/log/openerp
|
||||||
|
/var/spool/openerp
|
||||||
|
/var/run/openerp
|
||||||
|
/etc/openerp
|
||||||
|
/etc/openerp/cert.cfg
|
||||||
|
/etc/openerp-server.conf
|
||||||
|
/etc/logrotate.d/openerp-server
|
||||||
|
|
||||||
|
Then, rename the user in the postgres database:
|
||||||
|
|
||||||
|
psql -U postgres postgres
|
||||||
|
|
||||||
|
ALTER ROLE tinyerp RENAME TO openerp;
|
||||||
|
|
||||||
|
Then, edit your openerp-server.conf to depict the change:
|
||||||
|
- db_user = tinyerp
|
||||||
|
+ db_user = openerp
|
||||||
|
|
||||||
|
Good luck!
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ db_port = False
|
||||||
; Please uncomment the following line *after* you have created the
|
; Please uncomment the following line *after* you have created the
|
||||||
; database. It activates the auto module check on startup.
|
; database. It activates the auto module check on startup.
|
||||||
; db_name = terp
|
; db_name = terp
|
||||||
db_user = tinyerp
|
db_user = openerp
|
||||||
db_password = False
|
db_password = False
|
||||||
; Uncomment these for xml-rpc over SSL
|
; Uncomment these for xml-rpc over SSL
|
||||||
; secure = True
|
; secure = True
|
||||||
|
|
|
@ -51,7 +51,7 @@ RETVAL=0
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
echo -n $"Starting $desc ($prog): "
|
echo -n $"Starting $desc ($prog): "
|
||||||
daemon --user tinyerp --check openerp-server \
|
daemon --user openerp --check openerp-server \
|
||||||
"/usr/bin/setsid /usr/bin/openerp-server \
|
"/usr/bin/setsid /usr/bin/openerp-server \
|
||||||
-c /etc/openerp-server.conf \
|
-c /etc/openerp-server.conf \
|
||||||
--pidfile=$PIDFILE \
|
--pidfile=$PIDFILE \
|
||||||
|
|
Loading…
Reference in New Issue