doc/web/source/upgrade/0.5-0.6.rst
changeset 706 6c369b680ab0
parent 626 f151defe7078
equal deleted inserted replaced
705:9149e0249c25 706:6c369b680ab0
    48 
    48 
    49 Dovecot v1.2.x/v2.0.x/v2.1.x
    49 Dovecot v1.2.x/v2.0.x/v2.1.x
    50 """"""""""""""""""""""""""""
    50 """"""""""""""""""""""""""""
    51 .. code-block:: postgresql-console
    51 .. code-block:: postgresql-console
    52 
    52 
    53  mailsys=> \i /path/to/vmm-0.6.1/pgsql/update_tables_0.5.x-0.6-dovecot-1.2.x.pgsql
    53  mailsys=> \i /path/to/vmm-0.6.2/pgsql/update_tables_0.5.x-0.6-dovecot-1.2.x.pgsql
    54  mailsys=> \q
    54  mailsys=> \q
    55 
    55 
    56 Dovecot v1.0.x/v1.1.x
    56 Dovecot v1.0.x/v1.1.x
    57 """""""""""""""""""""
    57 """""""""""""""""""""
    58 .. code-block:: postgresql-console
    58 .. code-block:: postgresql-console
    59 
    59 
    60  mailsys=> \i /path/to/vmm-0.6.1/pgsql/update_tables_0.5.x-0.6.pgsql
    60  mailsys=> \i /path/to/vmm-0.6.2/pgsql/update_tables_0.5.x-0.6.pgsql
    61  mailsys=> \q
    61  mailsys=> \q
    62 
    62 
    63 .. _set-database-permissions:
    63 .. _set-database-permissions:
    64 
    64 
    65 Set database permissions
    65 Set database permissions
    72 .. warning:: All the views (*dovecot_…* and *postfix_…*) have been
    72 .. warning:: All the views (*dovecot_…* and *postfix_…*) have been
    73    replaced by database functions.
    73    replaced by database functions.
    74    So you have to adjust all your ``postfix/pgsql-*.cf`` files and also your
    74    So you have to adjust all your ``postfix/pgsql-*.cf`` files and also your
    75    ``/etc/dovecot/dovecot-sql.conf`` or ``/etc/dovecot/dovecot-sql.conf.ext``.
    75    ``/etc/dovecot/dovecot-sql.conf`` or ``/etc/dovecot/dovecot-sql.conf.ext``.
    76 
    76 
    77    See the `vmm-0.6.1/postfix/pgsql-*.cf` files and
    77    See the `vmm-0.6.2/postfix/pgsql-*.cf` files and
    78    :ref:`Dovecot configuration <dovecot-sql-conf-ext>`/`dovecot-sql.conf.ext`
    78    :ref:`Dovecot configuration <dovecot-sql-conf-ext>`/`dovecot-sql.conf.ext`
    79    or :ref:`Dovecot configuration <dovecot-sql-conf>`/`dovecot-sql-conf`.
    79    or :ref:`Dovecot configuration <dovecot-sql-conf>`/`dovecot-sql-conf`.
    80 
    80 
    81 After a successfully update start Dovecot and Postfix again.
    81 After a successfully update start Dovecot and Postfix again.
    82 
    82 
    92 Finally execute the :file:`upgrade.sh` script.
    92 Finally execute the :file:`upgrade.sh` script.
    93 This will install the new code and also update your :file:`vmm.cfg`.
    93 This will install the new code and also update your :file:`vmm.cfg`.
    94 
    94 
    95 .. code-block:: console
    95 .. code-block:: console
    96 
    96 
    97  root@host:~# cd /path/to/vmm-0.6.1
    97  root@host:~# cd /path/to/vmm-0.6.2
    98  root@host:/path/to/vmm-0.6.1# ./upgrade.sh
    98  root@host:/path/to/vmm-0.6.2# ./upgrade.sh
    99  Please have a look at your configuration: /usr/local/etc/vmm.cfg
    99  Please have a look at your configuration: /usr/local/etc/vmm.cfg
   100  This are your Modified/Renamed/New settings:
   100  This are your Modified/Renamed/New settings:
   101  R   account.delete_directory = false
   101  R   account.delete_directory = false
   102  R   account.directory_mode = 448
   102  R   account.directory_mode = 448
   103  R   account.disk_usage = false
   103  R   account.disk_usage = false
   176 
   176 
   177 Upgrade vmm
   177 Upgrade vmm
   178 ^^^^^^^^^^^
   178 ^^^^^^^^^^^
   179 Execute the :file:`upgrade.sh`, in order to install the updated code.
   179 Execute the :file:`upgrade.sh`, in order to install the updated code.
   180 
   180 
       
   181 Upgrading from vmm-0.6.1
       
   182 ------------------------
       
   183 If you have already installed vmm-6.0.1, simply execute the
       
   184 :file:`upgrade.sh` script.
       
   185 
   181 Upgrade to Dovecot ≧ v1.2.beta2
   186 Upgrade to Dovecot ≧ v1.2.beta2
   182 -------------------------------
   187 -------------------------------
   183 When you are upgrading your old Dovecot (< v.1.2.beta2) to a newer version,
   188 When you are upgrading your old Dovecot (< v.1.2.beta2) to a newer version,
   184 ≧ v1.2.beta2, you also have to update the database layout.
   189 ≧ v1.2.beta2, you also have to update the database layout.
   185 After you have backed up your database, you have to apply the changes from
   190 After you have backed up your database, you have to apply the changes from