Your ROOT_URL in app.ini is https://git.bwnetwork.us/ but you are visiting http://git.bwnetwork.us/Administrator/Proxmox_Helper_scripts/commit/13ac5e607fe3526bac7d7a76e7bdf1039ce2b40e
You should set ROOT_URL correctly, otherwise the web may not work correctly.
58 changed files with
116 additions and
232 deletions
@ -107,10 +107,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -363,10 +363,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -116,10 +116,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -122,10 +122,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -109,10 +109,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -140,10 +140,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -101,10 +101,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -133,10 +133,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -159,10 +159,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -122,10 +122,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -107,10 +107,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -129,10 +129,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -116,10 +116,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
systemctl start grafana-server
systemctl enable grafana-server.service & >/dev/null
@ -145,10 +145,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -140,10 +140,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -185,10 +185,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -343,10 +343,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -119,10 +119,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -137,10 +137,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -140,10 +140,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -107,10 +107,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -147,10 +147,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -128,10 +128,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -224,10 +224,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -124,10 +124,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -118,10 +118,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -137,10 +137,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -114,10 +114,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -130,10 +130,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -156,10 +156,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -105,10 +105,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -262,10 +262,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Starting Services"
@ -136,10 +136,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -138,10 +138,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -112,10 +112,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -124,10 +124,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -124,10 +124,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -197,10 +197,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -127,10 +127,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -126,10 +126,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -160,10 +160,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -231,10 +231,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -136,10 +136,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -195,10 +195,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -165,10 +165,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -110,10 +110,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -107,10 +107,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -131,10 +131,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -102,10 +102,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -117,10 +117,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
apt-get autoremove >/dev/null
@ -115,10 +115,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -136,10 +136,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -192,10 +192,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -124,10 +124,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -152,10 +152,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -166,10 +166,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -152,10 +152,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"
@ -128,10 +128,8 @@ EOF
msg_ok "Customized Container"
fi
if [ [ " ${ SSH_ROOT } " = = "yes" ] ] ; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
systemctl restart sshd
fi
msg_info "Cleaning up"