Skip to content

Commit

Permalink
update config fix #16
Browse files Browse the repository at this point in the history
  • Loading branch information
joelclems committed Jun 9, 2020
1 parent 3563df7 commit 51dea7c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions backend/command/cmd_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
import click
from pathlib import Path

import subprocess


from flask import Flask
from flask.cli import AppGroup, with_appcontext
from sqlalchemy import and_
Expand Down Expand Up @@ -141,6 +144,14 @@ def install_monitoring_module(module_config_dir_path, module_path):

DB.engine.execution_options(autocommit=True).execute(txt)

# exec geonature (update img)
subprocess.call(
[
"geonature update_module_configuration {}"
.format(module_monitoring.module_code)
],
shell=True)

# TODO ++++ create specific tables

return
Expand Down

0 comments on commit 51dea7c

Please sign in to comment.