diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-06-07 19:21:18 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-06-07 19:21:18 +0200 |
| commit | 3ed483caa10b526f51bed4b0f999b3567dfb7942 (patch) | |
| tree | 170781cc2c6c337c7b29fd1ca1e9d3f1680cff72 /setup | |
| parent | 30864b6d008748a70fc686722d312de6055219c8 (diff) | |
| parent | fa4a371ba871544976206926ca3d06d9f6313a87 (diff) | |
[MERGE] forward port of branch 9.0 up to fa4a371
Diffstat (limited to 'setup')
| -rw-r--r-- | setup/redhat/postinstall.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/setup/redhat/postinstall.sh b/setup/redhat/postinstall.sh index d6eeb842640..19ea5292739 100644 --- a/setup/redhat/postinstall.sh +++ b/setup/redhat/postinstall.sh @@ -18,7 +18,9 @@ su - postgres -c "createuser -d -R -S $ODOO_USER" 2> /dev/null || true # Configuration file mkdir -p $ODOO_CONFIGURATION_DIR # can't copy debian config-file as addons_path is not the same -echo "[options] +if [ ! -f $ODOO_CONFIGURATION_FILE ] +then + echo "[options] ; This is the password that allows database operations: ; admin_passwd = admin db_host = False @@ -27,8 +29,9 @@ db_user = $ODOO_USER db_password = False addons_path = /usr/lib/python2.7/site-packages/openerp/addons " > $ODOO_CONFIGURATION_FILE -chown $ODOO_USER:$ODOO_GROUP $ODOO_CONFIGURATION_FILE -chmod 0640 $ODOO_CONFIGURATION_FILE + chown $ODOO_USER:$ODOO_GROUP $ODOO_CONFIGURATION_FILE + chmod 0640 $ODOO_CONFIGURATION_FILE +fi # Log mkdir -p $ODOO_LOG_DIR chown $ODOO_USER:$ODOO_GROUP $ODOO_LOG_DIR |
