From 43d9122dd5a7bb884961b3bd63486dc22ae0cfd6 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 23 Jan 2024 15:22:33 -0500 Subject: improve comments --- src/mariadb-persist-server-id | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mariadb-persist-server-id b/src/mariadb-persist-server-id index 932552f..33c0245 100755 --- a/src/mariadb-persist-server-id +++ b/src/mariadb-persist-server-id @@ -1,4 +1,15 @@ #!/bin/bash +# This script edits the file: +# /etc/mysql/mariadb.conf.d/50-server.cnf +# The config file will set +# the server-id to +# the server-id of +# the running MariaDB server. +# The config file is assumed to look like +# the default Debian configuration file +# approximately. +# MariaDB will break if the user +# has set the server-id in another file. set -o pipefail set -e PATH=$(dirname "$0"):$PATH @@ -126,5 +137,3 @@ validate_new_server_id() } run_server "${1:-root@localhost}" main - -# /etc/mysql/mariadb.conf.d/50-server.cnf -- cgit v1.2.3