From 96b8b2be67005af804743ec3d05dce39a7cb05a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Tue, 3 Sep 2019 10:42:22 +0200 Subject: [PATCH] Replace mysql-client init by mysql --- tutornotes/__about__.py | 2 +- tutornotes/patches/local-docker-compose-services | 4 ++-- tutornotes/plugin.py | 2 +- tutornotes/templates/notes/hooks/{mysql-client => mysql}/init | 0 4 files changed, 4 insertions(+), 4 deletions(-) rename tutornotes/templates/notes/hooks/{mysql-client => mysql}/init (100%) diff --git a/tutornotes/__about__.py b/tutornotes/__about__.py index 48fef32..acf3be3 100644 --- a/tutornotes/__about__.py +++ b/tutornotes/__about__.py @@ -1 +1 @@ -__version__ = "0.1.2" \ No newline at end of file +__version__ = "0.1.3" \ No newline at end of file diff --git a/tutornotes/patches/local-docker-compose-services b/tutornotes/patches/local-docker-compose-services index 6ed39ae..ee54bf2 100644 --- a/tutornotes/patches/local-docker-compose-services +++ b/tutornotes/patches/local-docker-compose-services @@ -7,5 +7,5 @@ notes: - ../plugins/notes/apps/settings/tutor.py:/openedx/edx-notes-api/notesserver/settings/tutor.py - ../../data/notes:/openedx/data restart: unless-stopped - {% if ACTIVATE_MYSQL %}depends_on: - - mysql{% endif %} \ No newline at end of file + depends_on: + - mysql \ No newline at end of file diff --git a/tutornotes/plugin.py b/tutornotes/plugin.py index 18c5576..440d838 100644 --- a/tutornotes/plugin.py +++ b/tutornotes/plugin.py @@ -23,7 +23,7 @@ config = { templates = pkg_resources.resource_filename("tutornotes", "templates") hooks = { - "init": ["mysql-client", "lms", "notes"], + "init": ["mysql", "lms", "notes"], "build-image": {"notes": "{{ NOTES_DOCKER_IMAGE }}"}, "remote-image": {"notes": "{{ NOTES_DOCKER_IMAGE }}"}, } diff --git a/tutornotes/templates/notes/hooks/mysql-client/init b/tutornotes/templates/notes/hooks/mysql/init similarity index 100% rename from tutornotes/templates/notes/hooks/mysql-client/init rename to tutornotes/templates/notes/hooks/mysql/init