fix: suppress unrelated service restarts during mysql install
This commit is contained in:
parent
4caf6be0a0
commit
8af96d8aee
@ -29,10 +29,10 @@ if dpkg-query -W mysql-server-8.0 >/dev/null 2>&1; then
|
||||
fi
|
||||
|
||||
apt-get update
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-common
|
||||
NEEDRESTART_MODE=l DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-common
|
||||
install -d -m 0755 /etc/mysql/mysql.conf.d
|
||||
sed -e '/^read_only=/d' -e '/^super_read_only=/d' "$config_file" \
|
||||
> "$config_target"
|
||||
chmod 0644 "$config_target"
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server
|
||||
NEEDRESTART_MODE=l DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server
|
||||
"$(dirname "$(realpath "$0")")/apply-replica-config.sh" "$config_file"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user