Placement: Debian pkg has migration script in different path
Change-Id: I33d45a5bdd4f45153a78c695e7a9a97f2444dd74
(cherry picked from commit 2d7a14012d
)
This commit is contained in:
parent
bcac8b82ad
commit
0ef702332e
|
@ -25,8 +25,14 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
|
||||||
] %}
|
] %}
|
||||||
{% endif %}
|
{% 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")) }} \
|
{{ 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
|
&& chmod 755 /opt/mysql-migrate-db.sh
|
||||||
|
|
||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
Loading…
Reference in New Issue