From 0f8105985b89f626bb43e6f0fa27db51d184a807 Mon Sep 17 00:00:00 2001 From: Spitap Date: Thu, 16 Feb 2023 14:49:47 +0100 Subject: [PATCH] removed symbolic link use --- doc/upgrade.rst | 10 ++++++---- modoboa/core/commands/deploy.py | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/doc/upgrade.rst b/doc/upgrade.rst index 79275a8b3..8245b937f 100644 --- a/doc/upgrade.rst +++ b/doc/upgrade.rst @@ -54,17 +54,19 @@ New-admin interface =================== .. note:: - You don't need to perform these actions if you installed modoboa after 2.0.5. + You don't need to perform these actions if you use the installer to upgrade your instance. -New admin interface won't update by itself. To fix this, run the following commands (you need to perform this only one time): +New admin interface won't update by itself. Run the following commands to update it: .. sourcecode:: bash > sudo -u -i bash > cd + > cp frontend/config.json ./ > rm -rf frontend - > ln -s /lib/pythonX.X/site-packages/modoboa/frontend_dist/ frontend/ - + > cp -R /lib/pythonX.X/site-packages/modoboa/frontend_dist/ frontend/ + > cp ./config.json frontend/config.json + Extensions ********** diff --git a/modoboa/core/commands/deploy.py b/modoboa/core/commands/deploy.py index 86287e9c5..dc6e1b8b3 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) - os.symlink(base_frontend_dir, frontend_target_dir, True) + shutil.copytree(base_frontend_dir, frontend_target_dir) with open("{}/config.json".format(frontend_target_dir), "w") as fp: fp.write("""{