|
|
|
@ -115,12 +115,12 @@ welcomeDialogs() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
verifyFreeDiskSpace() {
|
|
|
|
|
# 25MB is the minimum space needed (20MB install + 5MB one day of logs.)
|
|
|
|
|
# 50MB is the minimum space needed (45MB install (includes web admin bootstrap/jquery libraries etc) + 5MB one day of logs.)
|
|
|
|
|
requiredFreeBytes=51200
|
|
|
|
|
|
|
|
|
|
existingFreeBytes=$(df -lk / 2>&1 | awk '{print $4}' | head -2 | tail -1)
|
|
|
|
|
if ! [[ "$existingFreeBytes" =~ ^([0-9])+$ ]]; then
|
|
|
|
|
existingFreeBytes=$(df -lk /dev 2>&1 | awk '{print $4}' | head -2 | tail -1)
|
|
|
|
|
|
|
|
|
|
existingFreeBytes=`df -lk / 2>&1 | awk '{print $4}' | head -2 | tail -1`
|
|
|
|
|
if ! [[ "$existingFreeBytes" =~ ^([0-9])+$ ]]; then
|
|
|
|
|
existingFreeBytes=`df -lk /dev 2>&1 | awk '{print $4}' | head -2 | tail -1`
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [[ $existingFreeBytes -lt $requiredFreeBytes ]]; then
|
|
|
|
@ -635,8 +635,8 @@ installPiholeWeb() {
|
|
|
|
|
else
|
|
|
|
|
printf "\n:::\tNo default index.lighttpd.html file found... not backing up"
|
|
|
|
|
fi
|
|
|
|
|
$SUDO cp /etc/.pihole/advanced/index.html /var/www/html/pihole/index.html
|
|
|
|
|
$SUDO echo "::: done!"
|
|
|
|
|
$SUDO cp /etc/.pihole/advanced/index.* /var/www/html/pihole/.
|
|
|
|
|
$SUDO echo " done!"
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|