1234567891011121314151617181920212223242526272829303132 |
- #!/bin/bash
- set -e
- VERSION=${VERSION:?"VERSION not set"}
- cd $(dirname $0)
- rm -rf ./build
- mkdir -p ./build
- cat > ./build/lsb-release << EOF
- DISTRIB_ID=${DISTRIB_ID}
- DISTRIB_RELEASE=${VERSION}
- DISTRIB_DESCRIPTION="${DISTRIB_ID} ${VERSION}"
- EOF
- cat > ./build/sshd_config.append.tpl << EOF
- {{- if .Port}}
- Port {{.Port}}
- {{- end}}
- {{- if .ListenAddress}}
- ListenAddress {{.ListenAddress}}
- {{- end}}
- ClientAliveInterval 180
- UseDNS no
- PermitRootLogin no
- AllowGroups docker
- EOF
|