3 # Copyright (C) The Arvados Authors. All rights reserved.
5 # SPDX-License-Identifier: CC-BY-SA-3.0
8 echo ${hostname} > /etc/hostname
10 # Retry just in case internet access is not yet ready
12 apt-get -o Acquire::ForceIPv4=true update
14 if [ "$${ERR}" = "0" ]; then
19 apt-get -o Acquire::ForceIPv4=true install -y git curl
21 SSH_DIR="/home/${deploy_user}/.ssh"
22 if [ ! -d "$${SSH_DIR}" ]; then
23 install -d -o ${deploy_user} -g ${deploy_user} -m 700 $${SSH_DIR}
25 echo "${ssh_pubkey}" | install -o ${deploy_user} -g ${deploy_user} -m 600 /dev/stdin $${SSH_DIR}/authorized_keys