From: Dan Scott Date: Mon, 7 Nov 2011 21:38:32 +0000 (-0500) Subject: Backup the existing opensrf config files before copying X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=95eec328d507952dbf5647467ae0f198b28af207;p=evergreen%2Ftadl.git Backup the existing opensrf config files before copying Per a suggestion from Wolf Halton , create backup versions of the opensrf configuration files when we're copying the Evergreen example versions over, so that we can retrieve the Jabber user names and passwords and domains from the backups (if necessary). Signed-off-by: Dan Scott --- diff --git a/README b/README index f115c498d0..5732755239 100644 --- a/README +++ b/README @@ -301,8 +301,8 @@ following commands as the *opensrf* Linux account: [source, bash] ------------------------------------------------------------------------------ -cp /openils/conf/opensrf_core.xml.example /openils/conf/opensrf_core.xml -cp /openils/conf/opensrf.xml.example /openils/conf/opensrf.xml +cp -b /openils/conf/opensrf_core.xml.example /openils/conf/opensrf_core.xml +cp -b /openils/conf/opensrf.xml.example /openils/conf/opensrf.xml ------------------------------------------------------------------------------ When you installed OpenSRF, you created four Jabber users on two @@ -311,6 +311,12 @@ refer back to the OpenSRF README and, as the *opensrf* Linux account, edit the Evergreen version of the `opensrf_core.xml` file using the same Jabber users and domains as you used while installing and testing OpenSRF. +[NOTE] +The `-b` flag tells the `cp` command to create a backup version of the +destination file. The backup version of the destination file has a tilde (`~`) +appended to the file name, so if you have forgotten the Jabber users and +domains, you can retrieve the settings from the backup version of the files. + `eg_db_config.pl`, described in the following section, sets the database connection information in `opensrf.xml` for you.