mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-02-14 09:39:51 +00:00
feat(psql): add aliases
This commit is contained in:
11
postgres-client/README.md
Normal file
11
postgres-client/README.md
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
title: Postgres Client (PSQL alias)
|
||||
homepage: https://webinstall.dev/psql
|
||||
tagline: |
|
||||
Alias for https://webinstall.dev/psql
|
||||
alias: psql
|
||||
description: |
|
||||
See https://webinstall.dev/psql
|
||||
---
|
||||
|
||||
Alias for https://webinstall.dev/psql
|
||||
12
postgres-client/install.sh
Normal file
12
postgres-client/install.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
set -u
|
||||
|
||||
__redirect_alias_psql() {
|
||||
echo "'postgres-client' is an alias for 'psql'"
|
||||
sleep 2.5
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webi.sh"}
|
||||
curl -fsSL "$WEBI_HOST/psql@${WEBI_VERSION-}" | sh
|
||||
}
|
||||
|
||||
__redirect_alias_psql
|
||||
11
postgresql-client/README.md
Normal file
11
postgresql-client/README.md
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
title: PostgreSQL Client (PSQL alias)
|
||||
homepage: https://webinstall.dev/psql
|
||||
tagline: |
|
||||
Alias for https://webinstall.dev/psql
|
||||
alias: psql
|
||||
description: |
|
||||
See https://webinstall.dev/psql
|
||||
---
|
||||
|
||||
Alias for https://webinstall.dev/psql
|
||||
12
postgresql-client/install.sh
Normal file
12
postgresql-client/install.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
set -u
|
||||
|
||||
__redirect_alias_psql() {
|
||||
echo "'postgresql-client' is an alias for 'psql'"
|
||||
sleep 2.5
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webi.sh"}
|
||||
curl -fsSL "$WEBI_HOST/psql@${WEBI_VERSION-}" | sh
|
||||
}
|
||||
|
||||
__redirect_alias_psql
|
||||
Reference in New Issue
Block a user