16 lines
276 B
Bash
Executable File
16 lines
276 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
case "$1" in
|
|
install)
|
|
variant="$2"
|
|
my_cnf_path="$3"
|
|
update-alternatives --install /etc/mysql/my.cnf my.cnf "$my_cnf_path" 200
|
|
;;
|
|
remove)
|
|
variant="$2"
|
|
my_cnf_path="$3"
|
|
update-alternatives --remove my.cnf "$my_cnf_path"
|
|
;;
|
|
esac
|