diff --git a/scripts/debian12.sh b/scripts/debian12.sh index 4ebdd39..6eb00d5 100644 --- a/scripts/debian12.sh +++ b/scripts/debian12.sh @@ -4,10 +4,10 @@ DEBIAN_FRONTEND=noninteractive apt-get upgrade -y apt-get autoremove -y # install rc.local script -cat << 'EOL' | sudo tee /etc/rc.local +cat << 'EOL' | tee /etc/rc.local #!/bin/sh -ef # -test -f /etc/ssh/ssh_host_dsa_key || sudo -u root dpkg-reconfigure openssh-server +test -f /etc/ssh/ssh_host_dsa_key || dpkg-reconfigure openssh-server exit 0 EOL chmod +x /etc/rc.local