make rc.local executable
This commit is contained in:
@@ -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/*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user