diff options
Diffstat (limited to 'invoke_session_debian')
-rwxr-xr-x | invoke_session_debian | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/invoke_session_debian b/invoke_session_debian index 9f05390..439d298 100755 --- a/invoke_session_debian +++ b/invoke_session_debian @@ -44,23 +44,6 @@ fi EOF IRC_AVAILABLE=false -if [ ! -z "${IRC_USER}" ]; then - if apt-get install -qq python-irc; then - IRC_AVAILABLE=true - TMP_IRC_USER=hs-${RANDOM} - # make a unique user - cat <<EOF | python /usr/share/doc/python-irc/examples/irccat2.py ${IRC_SERVER} ${TMP_IRC_USER} ${IRC_USER} -Your hacking session is now ready -Please connect to: -${SSH_COMMAND} -EOF - fi -fi -if [ ! -z "${NOTIFY_URL}" ]; then - if apt-get install -qq wget; then - wget -O - "${NOTIFY_URL}?ssh=${ip_addr}" - fi -fi echo "" mkdir -p /run mkdir -p /run/hacking @@ -89,13 +72,6 @@ do if [ $ELAPSED -gt 691200 ]; then echo "No user logged in. Terminating session..." TERMINATED=true - if ${IRC_AVAILABLE}; then - # make a unique user - cat <<EOF | python /usr/share/doc/python-irc/examples/irccat2.py ${IRC_SERVER} ${TMP_IRC_USER} ${IRC_USER} -Your hacking session was terminated due to inactivity -There was no user logged in for ${ELAPSED} seconds. -EOF - fi lava-test-case hacking-session-terminated --result fail --measurement ${ELAPSED} --units seconds stop_hacking fi |