aboutsummaryrefslogtreecommitdiffstats
path: root/testing/scripts/build-sshkeys
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2007-08-03 10:58:45 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2007-08-03 10:58:45 +0000
commit90b21fde11067943e930b8af694b6e9af1fb9c08 (patch)
tree2e9f32c46f8b0399094d5708f888607a547d8635 /testing/scripts/build-sshkeys
parentd49cc7b3833da8ca6bce90fbd21bebdf47c3a670 (diff)
downloadstrongswan-90b21fde11067943e930b8af694b6e9af1fb9c08.tar.bz2
strongswan-90b21fde11067943e930b8af694b6e9af1fb9c08.tar.xz
use cgecho for green output
Diffstat (limited to 'testing/scripts/build-sshkeys')
-rwxr-xr-xtesting/scripts/build-sshkeys12
1 files changed, 6 insertions, 6 deletions
diff --git a/testing/scripts/build-sshkeys b/testing/scripts/build-sshkeys
index 23f62e005..eb74e72d7 100755
--- a/testing/scripts/build-sshkeys
+++ b/testing/scripts/build-sshkeys
@@ -37,25 +37,25 @@ if [ ! -f $LOGFILE ]
then
cecho-n " * Logfile '$LOGFILE' does not exist..creating.."
touch $LOGFILE
- cecho "done"
+ cgecho "done"
fi
if [ ! -d ~/.ssh ]
then
cecho-n " * Creating directory '~/.ssh'.."
mkdir ~/.ssh
- cecho "done"
+ cgecho "done"
fi
if [ -f ~/.ssh/known_hosts ]
then
cecho-n " * Backing up ~/.ssh/known_hosts to '~/.ssh/known_hosts.before_uml'.."
cp -fp ~/.ssh/known_hosts ~/.ssh/known_hosts.before_uml
- cecho "done"
+ cgecho "done"
else
cecho-n " * Creating '~/.ssh/known_hosts'"
touch ~/.ssh/known_hosts
- cecho "done"
+ cgecho "done"
fi
for host in $HOSTNAMEIPV4
@@ -68,7 +68,7 @@ do
else
cecho-n " * Adding uml host $HOSTNAME ($IP) to '~/.ssh/known_hosts'.."
echo "$HOSTNAME,$IP `cat $DIR/../hosts/ssh_host_rsa_key.pub`" >> ~/.ssh/known_hosts
- cecho "done"
+ cgecho "done"
fi
done
@@ -84,5 +84,5 @@ else
cecho "not found"
cecho-n " * Generating ssh rsa key pair.."
echo "" | ssh-keygen -N "" -t rsa -f ~/.ssh/id_rsa >> $LOGFILE 2>&1
- cecho "done"
+ cgecho "done"
fi