make rc.local executable

This commit is contained in:
2022-05-20 18:07:16 +00:00
parent 7bb2f1bfad
commit 9bae1e472a

View File

@@ -7,6 +7,7 @@
echo "Removing openssh-server's host keys..."
rm -vf /etc/ssh/ssh_host_*
cat /dev/null > /etc/rc.local
chmod +x /etc/rc.local
cat << 'EOL' | sudo tee /etc/rc.local
#!/bin/sh -e
#
@@ -31,7 +32,8 @@ then
fi
exit 0
EOL
echo "Cleaning up /var/mail..."
rm -vf /var/mail/*