Browse Source

Placement: Debian pkg has migration script in different path

Change-Id: I33d45a5bdd4f45153a78c695e7a9a97f2444dd74
(cherry picked from commit 2d7a14012d)
changes/34/685934/1
Viktor Michalek 2 years ago
committed by Marcin Juszkiewicz
parent
commit
0ef702332e
  1. 8
      docker/placement/placement-base/Dockerfile.j2

8
docker/placement/placement-base/Dockerfile.j2

@ -25,8 +25,14 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
] %}
{% endif %}
{% if base_distro in ['debian'] %}
{% set mysql_migrate_path = '/usr/share/placement-common/mysql-migrate-db.sh' %}
{% else %}
{% set mysql_migrate_path = '/usr/share/placement/mysql-migrate-db.sh' %}
{% endif %}
{{ macros.install_packages(placement_base_packages | customizable("packages")) }} \
&& cp /usr/share/placement/mysql-migrate-db.sh /opt/ \
&& cp {{ mysql_migrate_path }} /opt/ \
&& chmod 755 /opt/mysql-migrate-db.sh
{% elif install_type == 'source' %}

Loading…
Cancel
Save