From 893c637451eac5cf6780032a8e397571da395a3e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 30 Sep 2013 03:26:27 +0200 Subject: the username sshlogin can be changed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 2 ++ got | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index acb3691..ac3a09e 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ SBIN = /sbin LICENSES = /usr/share/licenses COMMAND = got PKGNAME = gates-of-tartaros +SSHUSER = sshlogin BASH_SHEBANG = /usr/bin/env bash @@ -17,6 +18,7 @@ got.install: got sed -i 's:@prefix@:$(PREFIX):g' "$@" sed -i 's:@etc@:$(SYSCONF):g' "$@" sed -i 's:@command@:$(COMMAND):g' "$@" + sed -i 's:@sshlogin@:$(SSHUSER):g' "$@" got-cmd.install: got-cmd cp "$<" "$@" diff --git a/got b/got index 436a383..ba8a41a 100755 --- a/got +++ b/got @@ -32,7 +32,7 @@ if [ "$1" = "-" ]; then read user if [ ! "${user/@/}" = "${user}" ]; then export GOT_COMMAND="ssh ${user}" - login -p -f sshlogin + login -p -f @sshlogin@ elif [ "${user::1}" = "-" ]; then stty -icanon -echo -isig -ix{on,off,any} echo $'\e[01;31mNice try! Sleeping for 10 minutes...\e[00m' -- cgit v1.2.3-70-g09d2