diff options
author | Andreas Voegele <andreas@andreasvoegele.com> | 2017-07-12 08:23:06 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-07-12 22:47:53 +0700 |
commit | 96a026113d84c46ebb82ab7a700123f7b2b683a2 (patch) | |
tree | fe49ecbf3d9908515eed4cd64ff1e10439f368aa /system/mariadb-plugin-saslauthd/doinst.sh | |
parent | c2712b22700baf9207f520b291b3be9e92774aff (diff) |
system/mariadb-plugin-saslauthd: Added (SASLAUTHD Support).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/mariadb-plugin-saslauthd/doinst.sh')
-rw-r--r-- | system/mariadb-plugin-saslauthd/doinst.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/system/mariadb-plugin-saslauthd/doinst.sh b/system/mariadb-plugin-saslauthd/doinst.sh new file mode 100644 index 0000000000000..e0a5cd16763fd --- /dev/null +++ b/system/mariadb-plugin-saslauthd/doinst.sh @@ -0,0 +1,14 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +config etc/my.cnf.d/auth_saslauthd.cnf.new |