mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-02-14 09:39:51 +00:00
feat(mariadb): add mysql and mariadb-server aliases
This commit is contained in:
11
mariadb-server/README.md
Normal file
11
mariadb-server/README.md
Normal 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
12
mariadb-server/install.sh
Executable 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
11
mariadbd/README.md
Normal 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
12
mariadbd/install.sh
Executable 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
15
mysql/README.md
Normal 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
17
mysql/install.sh
Executable 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
15
mysqld/README.md
Normal 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
17
mysqld/install.sh
Executable 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
|
||||
Reference in New Issue
Block a user