From 2025da82f3e5550672b09e249c3cfd9a924aa64d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miquel=20Sabat=C3=A9=20Sol=C3=A0?= Date: Wed, 20 Apr 2016 16:17:54 +0200 Subject: [PATCH] portusctl: don't configure mysql in docker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit bsc#976198 Signed-off-by: Miquel Sabaté Solà --- packaging/suse/portusctl/lib/configurator.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packaging/suse/portusctl/lib/configurator.rb b/packaging/suse/portusctl/lib/configurator.rb index 2f7db60aa..91120372b 100644 --- a/packaging/suse/portusctl/lib/configurator.rb +++ b/packaging/suse/portusctl/lib/configurator.rb @@ -85,6 +85,12 @@ def database_config # Creates the database and performs the migrations def create_database + if dockerized? + puts "Running inside of a docker container" + puts "No systemd support, skipping mysql configuration" + return + end + Runner.activate_service("mysql") if database_local? env_variables = {