basic.sh 711 Bytes
Newer Older
1 2 3 4
#!/bin/sh

set -x

5
# add testing branch to repo for tcsh package
6
echo "@community http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
7

8 9 10
apk update

# missing iputils-ping package from ubuntu process
11
apk add openssh-server rsyslog logrotate iproute2 iputils net-tools sudo bash \
12
    util-linux openssh-client tcsh@community
13 14 15

# the apk tcsh doesnt include a csh symlink so we'll add one
ln -s /bin/tcsh /bin/csh
16 17 18 19 20 21 22 23 24

## Permissions on these should be the same as the host, so preserve them.
#cp -p /tmp/src/ssh-host-keys/ssh_host* /etc/ssh/

## Install default SSH key for root and app.
mkdir -p /root/.ssh
chmod 700 /root/.ssh
chown root:root /root/.ssh

25 26
echo console >> /etc/securetty

27
exit 0