Skip to content

Commit

Permalink
remove motd from enable-ssh.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Wasapl authored Aug 30, 2019
1 parent 7b02bc9 commit 1e05d8a
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions scripts/enable-ssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,6 @@ chmod 600 "${HOME}/.ssh/authorized_keys"
USERKEY_MD5=$(ssh-keygen -E md5 -lf /dev/stdin <<<"${APPVEYOR_SSH_KEY}" | cut -f 2 -d" ")
USERKEY_SHA256=$(ssh-keygen -lf /dev/stdin <<< "${APPVEYOR_SSH_KEY}" | cut -f 2 -d" ")

# modify MOTD
if [ -d /etc/update-motd.d ]; then
(
echo "Project: ${APPVEYOR_PROJECT_NAME}"
echo "Build Version: ${APPVEYOR_BUILD_VERSION}"
echo "URL: ${APPVEYOR_URL}/project/${APPVEYOR_ACCOUNT_NAME}/${APPVEYOR_PROJECT_SLUG}/build/job/${APPVEYOR_JOB_ID}"
) | sudo tee /etc/update-motd.d/01-appveyor
sudo chmod +x /etc/update-motd.d/01-appveyor
fi

# print out connection command
echo "Connect to ${EXT_IP} port $PORT with ${USER_NAME} user:"
echo -e "${YELLOW} ssh ${USER_NAME}@${EXT_IP} -p ${PORT}${NC}"
Expand Down

0 comments on commit 1e05d8a

Please sign in to comment.