Fixed dropbear SSH_PORT not being rendered

This commit is contained in:
Dionysus 2024-02-13 01:35:38 -05:00
parent b283f82d9a
commit bb645cf2d7
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE
1 changed files with 1 additions and 1 deletions

2
vps
View File

@ -47,7 +47,7 @@ setup_chroot() {
>/var/log/lastlog && chattr +i /var/log/lastlog
printf '#!/bin/sh\nexec 2>&1\n[ -r conf ] && . ./conf\nexec dropbear -p $SSH_PORT -R -m -w -t -T 1 -R\n' > /etc/sv/dropbear/run
printf '#!/bin/sh\nexec 2>&1\n[ -r conf ] && . ./conf\nexec dropbear -p '"$SSH_PORT"' -R -m -w -t -T 1 -F 2>&1\n' > /etc/sv/dropbear/run
printf "\nexport HISTFILE=/dev/null\nexport LESSHISTFILE=/dev/null\nexport PYTHONHISTFILE=/dev/null\n" >> /etc/profile
printf "set boldtext\nset minibar\nset nohelp\nset nowrap\nset quickblank\nset tabsize 4\nunbind ^J main\nset selectedcolor black,red\ninclude \"/usr/share/nano/*.nanorc\"\n" > /etc/nanorc
echo "hsts=0" >> /etc/wgetrc