From d3ec67fcdfd1f40c727d257aa0f81e59af62e94d Mon Sep 17 00:00:00 2001 From: Mark Stillwell Date: Thu, 1 Oct 2015 00:08:16 +0100 Subject: [PATCH] removed some files that aren't used... --- get-ssh-key.sh | 25 ------------------------- my_init.sh | 15 --------------- 2 files changed, 40 deletions(-) delete mode 100644 get-ssh-key.sh delete mode 100755 my_init.sh diff --git a/get-ssh-key.sh b/get-ssh-key.sh deleted file mode 100644 index dd8fd8c..0000000 --- a/get-ssh-key.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash -ATTEMPTS=10 - -mkdir -p /root/.ssh -chmod 700 /root/.ssh - -TMPFILE=$(mktemp) -while [ ! -f /root/.ssh/authorized_keys ] && [ ${ATTEMPTS} -gt 0 ]; do - ATTEMPTS=$((${ATTEMPTS}-1)) - curl -sf http://169.254.169.254/latest/meta-data/public-keys/0/openssh-key \ - > ${TMPFILE} 2>/dev/null - if [ $? -eq 0 ]; then - cat ${TMPFILE} >> /root/.ssh/authorized_keys - chmod 0600 /root/.ssh/authorized_keys - echo "Successfully retrieved public key from instance metadata" - echo "********************************************************" - echo "AUTHORIZED KEYS" - echo "********************************************************" - cat /root/.ssh/authorized_keys - echo - echo "********************************************************" - fi - sleep 1 -done -rm -f ${TMPFILE} diff --git a/my_init.sh b/my_init.sh deleted file mode 100755 index d6f7642..0000000 --- a/my_init.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash -# obviously, this isn't quite as complicated as the my_init provided by phusion -# baseimage... - -if [ -d /etc/my_init.d ]; then - ls /etc/my_init.d/* | sort | while read SCRIPT; do - if [ -x ${SCRIPT} ]; then - ${SCRIPT} - else - /bin/bash ${SCRIPT} - fi - done -fi - -exec /usr/sbin/runsvdir-start