File: configure-symlinks

package info (click to toggle)
mysql-defaults 1.0.2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 80 kB
  • ctags: 1
  • sloc: sh: 60; makefile: 6
file content (15 lines) | stat: -rwxr-xr-x 276 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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