X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=installers%2Fcharm%2Fosm-nbi%2Fsrc%2Fcharm.py;h=b19beae803d48817969d4555f37deb8ba5abca6d;hb=a569df75794cf1eb5f504ea88faea7ceba030630;hp=8855de27627554950d0a69277127686ebeea407d;hpb=56db64f403eaea09530d1073640eee9b36ff2caf;p=osm%2Fdevops.git diff --git a/installers/charm/osm-nbi/src/charm.py b/installers/charm/osm-nbi/src/charm.py index 8855de27..b19beae8 100755 --- a/installers/charm/osm-nbi/src/charm.py +++ b/installers/charm/osm-nbi/src/charm.py @@ -260,10 +260,11 @@ class OsmNbiCharm(CharmBase): "nbi": { "override": "replace", "summary": "nbi service", - "command": "python3 -m osm_nbi.nbi", + "command": "/bin/sh -c 'cd /app/osm_nbi && python3 -m osm_nbi.nbi'", # cd /app/osm_nbi is needed until we upgrade Juju to 3.x "startup": "enabled", "user": "appuser", "group": "appuser", + "working-dir": "/app/osm_nbi", # This parameter has no effect in juju 2.9.x "environment": { # General configuration "OSMNBI_SERVER_ENABLE_TEST": False,