feat(mariadb): add mysql and mariadb-server aliases

This commit is contained in:
AJ ONeal
2025-01-25 00:01:41 +00:00
parent b6ab62c13f
commit cac2e62da8
8 changed files with 110 additions and 0 deletions

11
mariadb-server/README.md Normal file
View File

@@ -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

12
mariadb-server/install.sh Executable file
View File

@@ -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

11
mariadbd/README.md Normal file
View File

@@ -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

12
mariadbd/install.sh Executable file
View File

@@ -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

15
mysql/README.md Normal file
View File

@@ -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 <https://webinstall.dev/mariadb>.
That may change in the future, such as if an Oracle MySQL installer is created.

17
mysql/install.sh Executable file
View File

@@ -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

15
mysqld/README.md Normal file
View File

@@ -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 <https://webinstall.dev/mariadb>.
That may change in the future, such as if an Oracle MySQL installer is created.

17
mysqld/install.sh Executable file
View File

@@ -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