2023-04-13 03:16:58 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -euxo pipefail
|
|
|
|
|
|
|
|
source /etc/os-release
|
|
|
|
|
|
|
|
case "${ID}" in
|
|
|
|
ubuntu)
|
|
|
|
SYSTEM_USER=ubuntu
|
|
|
|
SYSTEM_HOME=/home/${SYSTEM_USER}
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
SYSTEM_USER=root
|
|
|
|
SYSTEM_HOME=/root
|
|
|
|
;;
|
2023-04-13 16:55:54 +00:00
|
|
|
esac
|
2023-04-13 03:16:58 +00:00
|
|
|
|
|
|
|
apt-get -y install openssh-server
|