rootfs/home/andre/.bashrc aktualisiert
This commit is contained in:
@@ -82,6 +82,7 @@ cy-ssh() {
|
||||
shift || true
|
||||
|
||||
# Defaults
|
||||
DOMAIN="conacc.local"
|
||||
SSH_HOSTNAME="finance"
|
||||
SSH_PROXY=""
|
||||
|
||||
@@ -129,7 +130,7 @@ cy-ssh() {
|
||||
# Prüfe ob Hostname auflösbar ist
|
||||
if ! getent hosts "$SSH_HOSTNAME" >/dev/null 2>&1 ; then
|
||||
# Versuche alternativen Hostname
|
||||
SSH_HOSTNAME_DOM="${SSH_HOSTNAME}.conadm.de"
|
||||
SSH_HOSTNAME_DOM="${SSH_HOSTNAME}.${DOMAIN}"
|
||||
if ! getent hosts "$SSH_HOSTNAME_DOM" >/dev/null 2>&1; then
|
||||
echo "
|
||||
! cy-ssh Fehler: \"${SSH_HOSTNAME}\" und \"${SSH_HOSTNAME_DOM}\" nicht auflösbar" >&2
|
||||
|
||||
Reference in New Issue
Block a user