summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Black <daniel@mariadb.org>2022-09-21 11:10:05 +1000
committerSergei Golubchik <serg@mariadb.org>2023-02-10 10:45:25 +0100
commitb30b040b733ff2045ffcd7bdd44f608c7f4912b5 (patch)
treed23e6e1aaa027fe26068e9a87994316d806c2b23 /scripts
parentce4a289f1c367987977f1a02bbb8d8b8e8e6bb53 (diff)
downloadmariadb-git-b30b040b733ff2045ffcd7bdd44f608c7f4912b5.tar.gz
MDEV-29582 deprecate mysql* names
Eventually mysql symlinks will go away, as MariaDB and MySQL keep diverging and we do not want to make it impossible to install MariaDB and MySQL side-by-side when users want it. It also useful if people start using MariaDB tools with MariaDB. If the exe doesn't begine with "mariadb" or is a symlink, print a warning to use the resolved name. In my_readlink, add check on my_thread_var as its used by comp_err and other build utils that also use my_init.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mysql_install_db.sh6
-rw-r--r--scripts/mysql_secure_installation.sh6
2 files changed, 12 insertions, 0 deletions
diff --git a/scripts/mysql_install_db.sh b/scripts/mysql_install_db.sh
index cc801ca2bfe..aeda217b39a 100644
--- a/scripts/mysql_install_db.sh
+++ b/scripts/mysql_install_db.sh
@@ -46,6 +46,12 @@ extra_file=""
dirname0=`dirname $0 2>/dev/null`
dirname0=`dirname $dirname0 2>/dev/null`
+case "$0" in
+ *mysql*)
+ echo "Notice: $0 is deprecated and will be removed in a future release, use command mariadb-install-db" 1>&2
+ ;;
+esac
+
usage()
{
cat <<EOF
diff --git a/scripts/mysql_secure_installation.sh b/scripts/mysql_secure_installation.sh
index 40d8e5d330e..8dee27c2f7c 100644
--- a/scripts/mysql_secure_installation.sh
+++ b/scripts/mysql_secure_installation.sh
@@ -29,6 +29,12 @@ defaults_file=
defaults_extra_file=
no_defaults=
+case "$0" in
+ *mysql*)
+ echo "Notice: $0 is deprecated and will be removed in a future release, use command mariadb-secure-installation" 1>&2
+ ;;
+esac
+
parse_arg()
{
echo "$1" | sed -e 's/^[^=]*=//'