|
|
@ -171,7 +171,7 @@ EOF
|
|
|
|
# This function modifies the message of the day (motd) and SSH settings
|
|
|
|
# This function modifies the message of the day (motd) and SSH settings
|
|
|
|
motd_ssh() {
|
|
|
|
motd_ssh() {
|
|
|
|
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
|
|
|
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
|
|
|
echo -e "$APPLICATION LXC provided by https://tteck.github.io/Proxmox/\n" >/etc/motd
|
|
|
|
echo -e "$APPLICATION LXC provided by https://helper-scripts.com/\n" >/etc/motd
|
|
|
|
chmod -x /etc/update-motd.d/*
|
|
|
|
chmod -x /etc/update-motd.d/*
|
|
|
|
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
|
|
|
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
|
|
|
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
|
|
|
|
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
|
|
|
|