bladerunner/packer/scripts/setup-ssh.sh

19 lines
239 B
Bash
Executable File

#!/usr/bin/env bash
set -euxo pipefail
source /etc/os-release
case "${ID}" in
ubuntu)
SYSTEM_USER=ubuntu
SYSTEM_HOME=/home/${SYSTEM_USER}
;;
*)
SYSTEM_USER=root
SYSTEM_HOME=/root
;;
esac
apt-get -y install openssh-server