dockerfiles/base/php-nginx/php/7.4-alpine/conf/provision/service.d/ssh.sh

18 lines
268 B
Bash
Raw Normal View History

2022-07-20 23:24:29 +08:00
#!/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