18 lines
268 B
Bash
18 lines
268 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
IMAGE_FAMILY=$(docker-image-info family)
|
||
|
|
||
|
case "$IMAGE_FAMILY" in
|
||
|
Debian|Ubuntu)
|
||
|
apt-install openssh-server
|
||
|
;;
|
||
|
|
||
|
RedHat)
|
||
|
yum-install openssh-server
|
||
|
;;
|
||
|
|
||
|
Alpine)
|
||
|
apk-install openssh
|
||
|
;;
|
||
|
esac
|