diff --git a/doc/rest_api.rst b/doc/rest_api.rst index 13cb23ef7..74159185f 100644 --- a/doc/rest_api.rst +++ b/doc/rest_api.rst @@ -11,13 +11,14 @@ documentation. **You will find them using the following url patterns:** * New API+Docs: *https:///api/schema-v2/swagger/* -* Old API: *http:///api/v1/ +* Old API: *http:///api/v1/* * (Old) Documentation: *http:///docs/api/* **Examples:** * `new example `_ * `old example `_ + documentation is available on the official demo. Using this API requires an authentication and for now, only a token diff --git a/doc/upgrade.rst b/doc/upgrade.rst index e34a106f4..79275a8b3 100644 --- a/doc/upgrade.rst +++ b/doc/upgrade.rst @@ -53,14 +53,17 @@ Then, reload postfix. New-admin interface =================== -New admin interface won't update by itself. To do so, run the following commands: +.. note:: + You don't need to perform these actions if you installed modoboa after 2.0.5. + +New admin interface won't update by itself. To fix this, run the following commands (you need to perform this only one time): .. sourcecode:: bash > sudo -u -i bash > cd > rm -rf frontend - > cp -R /lib/pythonX.X/site-packages/modoboa/frontend_dist/ frontend/ + > ln -s /lib/pythonX.X/site-packages/modoboa/frontend_dist/ frontend/ Extensions ********** @@ -136,13 +139,13 @@ The following modifications must be applied to the :file:`settings.py` file: ] -* Add the following variable:: +* Add the following variable: .. sourcecode:: python PID_FILE_STORAGE_PATH = '/var/run' -* Update ``LOGGING`` variable to define an address for ``syslog-auth`` handler:: +* Update ``LOGGING`` variable to define an address for ``syslog-auth`` handler: .. sourcecode:: python @@ -154,9 +157,8 @@ The following modifications must be applied to the :file:`settings.py` file: }, -* You now have the possibility to customize the url of the new-admin -interface. To do so please head up to :ref:`the custom configuration -chapter ` (advanced user). +* You now have the possibility to customize the url of the new-admin interface. + To do so please head up to :ref:`the custom configuration chapter ` (advanced user). * Add ``DEFAULT_THROTTLE_RATES`` to ``REST_FRAMEWORK``: diff --git a/modoboa/core/commands/deploy.py b/modoboa/core/commands/deploy.py index dc6e1b8b3..86287e9c5 100644 --- a/modoboa/core/commands/deploy.py +++ b/modoboa/core/commands/deploy.py @@ -273,7 +273,7 @@ class DeployCommand(Command): if not os.path.exists(base_frontend_dir): return frontend_target_dir = "{}/frontend".format(parsed_args.name) - shutil.copytree(base_frontend_dir, frontend_target_dir) + os.symlink(base_frontend_dir, frontend_target_dir, True) with open("{}/config.json".format(frontend_target_dir), "w") as fp: fp.write("""{