From 6a9133c305baeec03b63e09f40cd2e2b1a51598c Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Sat, 8 Jun 2019 22:50:20 -0400 Subject: [PATCH] config: Update migration to use app id Signed-off-by: James Valleroy --- plinth/modules/config/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plinth/modules/config/__init__.py b/plinth/modules/config/__init__.py index fc0ecc9f9..7db188e56 100644 --- a/plinth/modules/config/__init__.py +++ b/plinth/modules/config/__init__.py @@ -160,12 +160,12 @@ def setup(helper, old_version=None): def _migrate_home_page_config(): """Move the home page configuration to an external file.""" - # Hold the current home page path in a variable - home_page_path = get_home_page().replace('_', '/') + # Hold the current home page in a variable + home_page = get_home_page() # Reset the home page to plinth in freedombox.conf actions.superuser_run('config', ['reset-home-page']) # Write the home page setting into the new conf file # This step is run at the end because it reloads the Apache server - actions.superuser_run('config', ['set-home-page', home_page_path]) + change_home_page(home_page)