make rc.local executable
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
echo "Removing openssh-server's host keys..."
|
echo "Removing openssh-server's host keys..."
|
||||||
rm -vf /etc/ssh/ssh_host_*
|
rm -vf /etc/ssh/ssh_host_*
|
||||||
cat /dev/null > /etc/rc.local
|
cat /dev/null > /etc/rc.local
|
||||||
|
chmod +x /etc/rc.local
|
||||||
cat << 'EOL' | sudo tee /etc/rc.local
|
cat << 'EOL' | sudo tee /etc/rc.local
|
||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
#
|
#
|
||||||
@@ -31,7 +32,8 @@ then
|
|||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
EOL
|
EOL
|
||||||
|
|
||||||
|
|
||||||
echo "Cleaning up /var/mail..."
|
echo "Cleaning up /var/mail..."
|
||||||
rm -vf /var/mail/*
|
rm -vf /var/mail/*
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user