Fixes escaping in the rc.local script

`uname -r` was getting executed before the kernel change
This commit is contained in:
Matias Korhonen
2015-03-29 18:40:23 +03:00
parent 802c183b56
commit bb54f845aa

View File

@@ -115,7 +115,7 @@ function setup_linode {
update-grub
cp /etc/rc.local /etc/rc.local-bak
cat << EOF > /etc/rc.local
cat << "EOF" > /etc/rc.local
#!/bin/sh -e
sudo apt-get update >> /root/setup_linode.txt 2>&1
sudo apt-get install -y linux-image-extra-"$(uname -r)" >> /root/setup_linode.txt 2>&1