diff --git a/docs/installation.rst b/docs/installation.rst index 9bac9c635..0cb7fa76a 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -16,11 +16,8 @@ On the server you want to install CGRateS, simply execute the following commands :: - cd /etc/apt/sources.list.d/ - wget -O - http://apt.itsyscom.com/conf/cgrates.gpg.key|apt-key add - - wget http://apt.itsyscom.com/conf/cgrates.apt.list - apt-get update - apt-get install cgrates + wget http://www.cgrates.org/tmp_pkg/cgrates_0.9.1~rc8_amd64.deb + dpkg -i cgrates_0.9.1~rc8_amd64.deb Once the installation is completed, one should perform the :ref:`post-install` section in order to have the CGRateS properly set and ready to run. After *post-install* actions are performed, CGRateS will be configured in **/etc/cgrates/cgrates.json** and enabled in **/etc/default/cgrates**. @@ -107,8 +104,17 @@ Once MongoDB is installed, CGRateS database needs to be set-up out of provided s .. _PostgreSQL: http://www.postgresql.org .. _MongoDB: http://www.mongodb.org +3.3.2 Set versions data +~~~~~~~~~~~~~~~~~~~~~~~ +Once database setup is completed, we need to write the versions data. To do this, run migrator tool with the parameters specific to your database. -3.3.2.Git +Sample usage for MySQL: +:: + + cgr-migrator -stordb_passwd="CGRateS.org" -migrate="*set_versions" + + +3.3.3.Git ~~~~~~~~~ The **historys** (History Service) component will use `Git`_ to archive *tariff plan changes* in a local repository, diff --git a/docs/tut_cgrates_installs.rst b/docs/tut_cgrates_installs.rst index 64b6b5942..fe921f281 100644 --- a/docs/tut_cgrates_installs.rst +++ b/docs/tut_cgrates_installs.rst @@ -40,6 +40,10 @@ As described in post-install section, we will need to set up the MySQL_ database cd /usr/share/cgrates/storage/mysql/ ./setup_cgr_db.sh root CGRateS.org localhost +Once the database is in place, we can now set versions: +:: + + cgr-migrator -stordb_passwd="CGRateS.org" -migrate="*set_versions" At this point we have **CGRateS** installed but not yet configured. To facilitate understanding and speed up the process, **CGRateS** has the configurations used in these tutorials available in the */usr/share/cgrates/tutorials* folder.