Update debian-install.sh

Testing Enable Root SSH Access
This commit is contained in:
tteckster 2022-11-23 10:04:35 -05:00 committed by GitHub
parent a8433ea36c
commit 9f192aeec2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -42,7 +42,7 @@ function msg_error() {
echo -e "${BFR} ${CROSS} ${RD}${msg}${CL}"
}
msg_info "Setting up Container OS "
msg_info "Setting up Container OS"
sed -i "/$LANG/ s/\(^# \)//" /etc/locale.gen
locale-gen >/dev/null
while [ "$(hostname -I)" = "" ]; do
@ -100,6 +100,12 @@ EOF
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
msg_ok "Customized Container"
fi
if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
fi
msg_info "Cleaning up"
apt-get autoremove >/dev/null