github.com/hashicorp/packer@v1.14.3/examples/hcl/linux/etc/http/alpine-setup.sh (about) 1 #!/bin/sh 2 3 set -ex 4 5 apk add libressl 6 apk add open-vm-tools 7 rc-update add open-vm-tools 8 /etc/init.d/open-vm-tools start 9 10 cat >/usr/local/bin/shutdown <<EOF 11 #!/bin/sh 12 poweroff 13 EOF 14 chmod +x /usr/local/bin/shutdown 15 16 sed -i "/#PermitRootLogin/c\PermitRootLogin yes" /etc/ssh/sshd_config 17 sed -i "/#PasswordAuthentication/c\PasswordAuthentication yes" /etc/ssh/sshd_config 18 mkdir ~/.ssh 19 # copy ssy key ? 20 21 /etc/init.d/sshd restart