summaryrefslogtreecommitdiff
path: root/src/mariadb-persist-server-id
diff options
context:
space:
mode:
Diffstat (limited to 'src/mariadb-persist-server-id')
-rwxr-xr-xsrc/mariadb-persist-server-id13
1 files changed, 11 insertions, 2 deletions
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 @@
1#!/bin/bash 1#!/bin/bash
2# This script edits the file:
3# /etc/mysql/mariadb.conf.d/50-server.cnf
4# The config file will set
5# the server-id to
6# the server-id of
7# the running MariaDB server.
8# The config file is assumed to look like
9# the default Debian configuration file
10# approximately.
11# MariaDB will break if the user
12# has set the server-id in another file.
2set -o pipefail 13set -o pipefail
3set -e 14set -e
4PATH=$(dirname "$0"):$PATH 15PATH=$(dirname "$0"):$PATH
@@ -126,5 +137,3 @@ validate_new_server_id()
126} 137}
127 138
128run_server "${1:-root@localhost}" main 139run_server "${1:-root@localhost}" main
129
130# /etc/mysql/mariadb.conf.d/50-server.cnf