From cac2e62da881183e474c067d26c2f0ea70f1a9e3 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 25 Jan 2025 00:01:41 +0000 Subject: [PATCH] feat(mariadb): add mysql and mariadb-server aliases --- mariadb-server/README.md | 11 +++++++++++ mariadb-server/install.sh | 12 ++++++++++++ mariadbd/README.md | 11 +++++++++++ mariadbd/install.sh | 12 ++++++++++++ mysql/README.md | 15 +++++++++++++++ mysql/install.sh | 17 +++++++++++++++++ mysqld/README.md | 15 +++++++++++++++ mysqld/install.sh | 17 +++++++++++++++++ 8 files changed, 110 insertions(+) create mode 100644 mariadb-server/README.md create mode 100755 mariadb-server/install.sh create mode 100644 mariadbd/README.md create mode 100755 mariadbd/install.sh create mode 100644 mysql/README.md create mode 100755 mysql/install.sh create mode 100644 mysqld/README.md create mode 100755 mysqld/install.sh diff --git a/mariadb-server/README.md b/mariadb-server/README.md new file mode 100644 index 0000000..1328d0b --- /dev/null +++ b/mariadb-server/README.md @@ -0,0 +1,11 @@ +--- +title: MariaDB Server (MariaDB alias) +homepage: https://webinstall.dev/mariadb +tagline: | + Alias for https://webinstall.dev/mariadb +alias: mariadb +description: | + See https://webinstall.dev/mariadb +--- + +Alias for https://webinstall.dev/mariadb diff --git a/mariadb-server/install.sh b/mariadb-server/install.sh new file mode 100755 index 0000000..19fc177 --- /dev/null +++ b/mariadb-server/install.sh @@ -0,0 +1,12 @@ +#!/bin/sh +set -e +set -u + +__redirect_alias_mariadb() { + echo "'mariadb-server' is an alias for 'mariadb'" + sleep 2.5 + WEBI_HOST=${WEBI_HOST:-"https://webi.sh"} + curl -fsSL "$WEBI_HOST/mariadb@${WEBI_VERSION-}" | sh +} + +__redirect_alias_mariadb diff --git a/mariadbd/README.md b/mariadbd/README.md new file mode 100644 index 0000000..1328d0b --- /dev/null +++ b/mariadbd/README.md @@ -0,0 +1,11 @@ +--- +title: MariaDB Server (MariaDB alias) +homepage: https://webinstall.dev/mariadb +tagline: | + Alias for https://webinstall.dev/mariadb +alias: mariadb +description: | + See https://webinstall.dev/mariadb +--- + +Alias for https://webinstall.dev/mariadb diff --git a/mariadbd/install.sh b/mariadbd/install.sh new file mode 100755 index 0000000..08a05fb --- /dev/null +++ b/mariadbd/install.sh @@ -0,0 +1,12 @@ +#!/bin/sh +set -e +set -u + +__redirect_alias_mariadb() { + echo "'mariadbd' is an alias for 'mariadb'" + sleep 2.5 + WEBI_HOST=${WEBI_HOST:-"https://webi.sh"} + curl -fsSL "$WEBI_HOST/mariadb@${WEBI_VERSION-}" | sh +} + +__redirect_alias_mariadb diff --git a/mysql/README.md b/mysql/README.md new file mode 100644 index 0000000..055cd7c --- /dev/null +++ b/mysql/README.md @@ -0,0 +1,15 @@ +--- +title: MySQL (MariaDB alias) +homepage: https://webinstall.dev/mariadb +tagline: | + Alias for https://webinstall.dev/mariadb +alias: mariadb +description: | + See https://webinstall.dev/mariadb +--- + +`mysql` is ambiguous, and therefore a reserved installer name. + +Currently an alias for . + +That may change in the future, such as if an Oracle MySQL installer is created. diff --git a/mysql/install.sh b/mysql/install.sh new file mode 100755 index 0000000..e6712c7 --- /dev/null +++ b/mysql/install.sh @@ -0,0 +1,17 @@ +#!/bin/sh +set -e +set -u + +WEBI_HOST=${WEBI_HOST:-"https://webi.sh"} + +echo "" +echo "ERROR" +echo " 'mysql' is ambiguous and therefore reserved for future use" +echo "" +echo "SOLUTION" +echo " Did you mean 'mariadb'?" +echo "" +echo " curl -fsSL '$WEBI_HOST/mariadb' | sh" +echo "" + +exit 1 diff --git a/mysqld/README.md b/mysqld/README.md new file mode 100644 index 0000000..5b77841 --- /dev/null +++ b/mysqld/README.md @@ -0,0 +1,15 @@ +--- +title: MySQL Server (MariaDB Server alias) +homepage: https://webinstall.dev/mariadb +tagline: | + Alias for https://webinstall.dev/mariadb +alias: mariadb +description: | + See https://webinstall.dev/mariadb +--- + +`mysqld` is ambiguous, and therefore a reserved installer name. + +Currently an alias for . + +That may change in the future, such as if an Oracle MySQL installer is created. diff --git a/mysqld/install.sh b/mysqld/install.sh new file mode 100755 index 0000000..5fb74bd --- /dev/null +++ b/mysqld/install.sh @@ -0,0 +1,17 @@ +#!/bin/sh +set -e +set -u + +WEBI_HOST=${WEBI_HOST:-"https://webi.sh"} + +echo "" +echo "ERROR" +echo " 'mysqld' is ambiguous and therefore reserved for future use" +echo "" +echo "SOLUTION" +echo " Did you mean 'mariadb'?" +echo "" +echo " curl -fsSL '$WEBI_HOST/mariadb' | sh" +echo "" + +exit 1