Make the script more fork-friendly by replacing explicit download url with local definition.

This commit is contained in:
Harri Kapanen 2015-10-31 23:03:01 +02:00
parent d9aa19d2cd
commit 2774ce4658

View file

@ -54,7 +54,7 @@ function createSwapFile()
{
echo "** Creating more swap space to accomodate large solar masses..."
sudo dphys-swapfile swapoff
sudo curl -s -o /etc/dphys-swapfile https://raw.githubusercontent.com/jacobsalmela/pi-hole/master/advanced/dphys-swapfile
sudo echo "CONF_SWAPSIZE=500" > /etc/dphys-swapfile
sudo dphys-swapfile setup
sudo dphys-swapfile swapon
}