Skip to content

Commit c59eb4f

Browse files
committed
[REF] packaging: renamed configuration files
no fallbacks were implemented to `openerp-server.conf`.
1 parent 740a959 commit c59eb4f

File tree

9 files changed

+19
-19
lines changed

9 files changed

+19
-19
lines changed

debian/init

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
1717
DAEMON=/usr/bin/odoo
1818
NAME=odoo
1919
DESC=odoo
20-
CONFIG=/etc/odoo/openerp-server.conf
20+
CONFIG=/etc/odoo/odoo.conf
2121
LOGFILE=/var/log/odoo/odoo-server.log
2222
PIDFILE=/var/run/${NAME}.pid
2323
USER=odoo

debian/install

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
debian/openerp-server.conf /etc/odoo
1+
debian/odoo.conf /etc/odoo
22
README.md /usr/share/doc/odoo
File renamed without changes.

debian/postinst

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -e
44

5-
ODOO_CONFIGURATION_FILE=/etc/odoo/openerp-server.conf
5+
ODOO_CONFIGURATION_FILE=/etc/odoo/odoo.conf
66
ODOO_GROUP="odoo"
77
ODOO_DATA_DIR=/var/lib/odoo
88
ODOO_LOG_DIR=/var/log/odoo

doc/setup/install.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Configuration
131131
'''''''''''''
132132

133133
The :ref:`configuration file <reference/cmdline/config>` can be found at
134-
:file:`{%PROGRAMFILES%}\\Odoo 9.0-{id}\\server\\openerp-server.conf`.
134+
:file:`{%PROGRAMFILES%}\\Odoo 9.0-{id}\\server\\odoo.conf`.
135135

136136
The configuration file can be edited to connect to a remote Postgresql, edit
137137
file locations or set a dbfilter.
@@ -192,7 +192,7 @@ Configuration
192192
'''''''''''''
193193

194194
The :ref:`configuration file <reference/cmdline/config>` can be found at
195-
:file:`/etc/odoo/openerp-server.conf`
195+
:file:`/etc/odoo/odoo.conf`
196196

197197
When the configuration file is edited, Odoo must be restarted using
198198
``service``:
@@ -259,7 +259,7 @@ Configuration
259259
'''''''''''''
260260

261261
The :ref:`configuration file <reference/cmdline/config>` can be found at
262-
:file:`/etc/odoo/openerp-server.conf`
262+
:file:`/etc/odoo/odoo.conf`
263263

264264
When the configuration file is edited, Odoo must be restarted via SystemD:
265265

odoo/tools/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ def die(cond, msg):
350350
# else he won't be able to save the configurations, or even to start the server...
351351
# TODO use appdirs
352352
if os.name == 'nt':
353-
rcfilepath = os.path.join(os.path.abspath(os.path.dirname(sys.argv[0])), 'openerp-server.conf')
353+
rcfilepath = os.path.join(os.path.abspath(os.path.dirname(sys.argv[0])), 'odoo.conf')
354354
else:
355355
rcfilepath = os.path.expanduser('~/.openerp_serverrc')
356356

setup/package.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,8 @@ def test_deb(o):
317317
wheezy.system('su postgres -s /bin/bash -c "createdb mycompany"')
318318
wheezy.system('/usr/bin/dpkg -i /opt/release/%s' % wheezy.release)
319319
wheezy.system('/usr/bin/apt-get install -f -y')
320-
wheezy.system('su odoo -s /bin/bash -c "odoo -c /etc/odoo/openerp-server.conf -d mycompany -i base --stop-after-init"')
321-
wheezy.system('su odoo -s /bin/bash -c "odoo -c /etc/odoo/openerp-server.conf -d mycompany &"')
320+
wheezy.system('su odoo -s /bin/bash -c "odoo -c /etc/odoo/odoo.conf -d mycompany -i base --stop-after-init"')
321+
wheezy.system('su odoo -s /bin/bash -c "odoo -c /etc/odoo/odoo.conf -d mycompany &"')
322322

323323
def test_rpm(o):
324324
with docker('odoo-%s-fedora-nightly-tests' % version, o.build_dir, o.pub) as fedora24:
@@ -329,8 +329,8 @@ def test_rpm(o):
329329
fedora24.system('su postgres -c "createdb mycompany"')
330330
# Odoo install
331331
fedora24.system('dnf install -d 0 -e 0 /opt/release/%s -y' % fedora24.release)
332-
fedora24.system('su odoo -s /bin/bash -c "odoo -c /etc/odoo/openerp-server.conf -d mycompany -i base --stop-after-init"')
333-
fedora24.system('su odoo -s /bin/bash -c "odoo -c /etc/odoo/openerp-server.conf -d mycompany &"')
332+
fedora24.system('su odoo -s /bin/bash -c "odoo -c /etc/odoo/odoo.conf -d mycompany -i base --stop-after-init"')
333+
fedora24.system('su odoo -s /bin/bash -c "odoo -c /etc/odoo/odoo.conf -d mycompany &"')
334334

335335
def test_exe(o):
336336
KVMWinTestExe(o, o.vm_winxp_image, o.vm_winxp_ssh_key, o.vm_winxp_login).start()

setup/redhat/postinstall.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -e
44

55
ODOO_CONFIGURATION_DIR=/etc/odoo
6-
ODOO_CONFIGURATION_FILE=$ODOO_CONFIGURATION_DIR/openerp-server.conf
6+
ODOO_CONFIGURATION_FILE=$ODOO_CONFIGURATION_DIR/odoo.conf
77
ODOO_DATA_DIR=/var/lib/odoo
88
ODOO_GROUP="odoo"
99
ODOO_LOG_DIR=/var/log/odoo

setup/win32/setup.nsi

+7-7
Original file line numberDiff line numberDiff line change
@@ -219,18 +219,18 @@ Section $(TITLE_OpenERP_Server) SectionOpenERP_Server
219219
File /r "${STATIC_PATH}\less\*"
220220

221221
# If there is a previous install of the OpenERP Server, keep the login/password from the config file
222-
WriteIniStr "$INSTDIR\server\openerp-server.conf" "options" "db_host" $TextPostgreSQLHostname
223-
WriteIniStr "$INSTDIR\server\openerp-server.conf" "options" "db_user" $TextPostgreSQLUsername
224-
WriteIniStr "$INSTDIR\server\openerp-server.conf" "options" "db_password" $TextPostgreSQLPassword
225-
WriteIniStr "$INSTDIR\server\openerp-server.conf" "options" "db_port" $TextPostgreSQLPort
222+
WriteIniStr "$INSTDIR\server\odoo.conf" "options" "db_host" $TextPostgreSQLHostname
223+
WriteIniStr "$INSTDIR\server\odoo.conf" "options" "db_user" $TextPostgreSQLUsername
224+
WriteIniStr "$INSTDIR\server\odoo.conf" "options" "db_password" $TextPostgreSQLPassword
225+
WriteIniStr "$INSTDIR\server\odoo.conf" "options" "db_port" $TextPostgreSQLPort
226226
# Fix the addons path
227-
WriteIniStr "$INSTDIR\server\openerp-server.conf" "options" "addons_path" "$INSTDIR\server\odoo\addons"
228-
WriteIniStr "$INSTDIR\server\openerp-server.conf" "options" "bin_path" "$INSTDIR\thirdparty"
227+
WriteIniStr "$INSTDIR\server\odoo.conf" "options" "addons_path" "$INSTDIR\server\odoo\addons"
228+
WriteIniStr "$INSTDIR\server\odoo.conf" "options" "bin_path" "$INSTDIR\thirdparty"
229229

230230
# if we're going to install postgresql force it's path,
231231
# otherwise we consider it's always done and/or correctly tune by users
232232
${If} $HasPostgreSQL == 0
233-
WriteIniStr "$INSTDIR\server\openerp-server.conf" "options" "pg_path" "$INSTDIR\PostgreSQL\bin"
233+
WriteIniStr "$INSTDIR\server\odoo.conf" "options" "pg_path" "$INSTDIR\PostgreSQL\bin"
234234
${EndIf}
235235

236236
nsExec::Exec '"$INSTDIR\server\odoo-bin.exe" --stop-after-init --logfile "$INSTDIR\server\odoo.log" -s'

0 commit comments

Comments
 (0)