From 59c64e7872dae0e07b904d45506718e3c9d7aa6d Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 22 Mar 2018 10:25:44 +0530 Subject: [PATCH] ssh, avahi, apache: Fix default value for setup arguments To be consistent with all other apps. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/apache/__init__.py | 2 +- plinth/modules/avahi/__init__.py | 2 +- plinth/modules/ssh/__init__.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plinth/modules/apache/__init__.py b/plinth/modules/apache/__init__.py index 988d44ab0..2f943fc4a 100644 --- a/plinth/modules/apache/__init__.py +++ b/plinth/modules/apache/__init__.py @@ -27,7 +27,7 @@ is_essential = True managed_packages = ['apache2', 'libapache2-mod-gnutls', 'libapache2-mod-php'] -def setup(helper, old_version=False): +def setup(helper, old_version=None): """Configure the module.""" helper.install(managed_packages) actions.superuser_run('apache', ['setup']) diff --git a/plinth/modules/avahi/__init__.py b/plinth/modules/avahi/__init__.py index 50de614fd..9a1703516 100644 --- a/plinth/modules/avahi/__init__.py +++ b/plinth/modules/avahi/__init__.py @@ -64,7 +64,7 @@ def init(): is_external=False) -def setup(helper, old_version=False): +def setup(helper, old_version=None): """Install and configure the module.""" helper.install(managed_packages) # Reload avahi-daemon now that first-run does not reboot. After performing diff --git a/plinth/modules/ssh/__init__.py b/plinth/modules/ssh/__init__.py index 9ffe2049d..d37da3a83 100644 --- a/plinth/modules/ssh/__init__.py +++ b/plinth/modules/ssh/__init__.py @@ -55,7 +55,7 @@ def init(): managed_services[0], name, ports=['ssh'], is_external=True) -def setup(helper, old_version=False): +def setup(helper, old_version=None): """Configure the module.""" actions.superuser_run('ssh', ['setup'])