
Use variables like SOURCE,TARGET in config-external.sh, so it will easy to modify in future. Closes-Bug: #1485710 Change-Id: I3880a2cbca8a80d36e84a797fcfb943e43b88bd5
12 lines
229 B
Bash
12 lines
229 B
Bash
#!/bin/bash
|
|
SOURCE="/opt/kolla/mariadb/galera.cnf"
|
|
TARGET="/etc/my.cnf.d/galera.cnf"
|
|
OWNER="mysql"
|
|
|
|
# Cluster configuration
|
|
if [[ -f "$SOURCE" ]]; then
|
|
cp $SOURCE $TARGET
|
|
chown ${OWNER}: $TARGET
|
|
chmod 0600 $TARGET
|
|
fi
|