Update 2.6.2

master
sfeakes 2025-04-13 13:15:49 -05:00
parent 47c56ee5d4
commit c04ec5ce01
2 changed files with 18 additions and 0 deletions

View File

@ -131,6 +131,10 @@ NEED TO FIX FOR THIS RELEASE.
* New install and remote_install scripts.
* Changed MQTT posting frequency when Timers are enabled for better
* Updates for new repo location. [AqualinkD organization](https://github.com/aqualinkd/AqualinkD)
* Please use the following to upgrade
* `curl -fsSL https://install.aqualinkd.com | sudo bash -s -- latest`
* -or-
* `curl -fsSL https://raw.githubusercontent.com/aqualinkd/AqualinkD/master/release/remote_install.sh | sudo bash -s -- latest`
# Updates in 2.6.1
* Added External Sensors to Web UI & HomeKit.

View File

@ -8,6 +8,7 @@
# To get good / bad exit code from both curl and bash, use below. It will exit current term so be careful.
# curl -fsSL "https://raw.githubusercontent.com/aqualinkd/AqualinkD/master/release/remote_install.sh" | ( sudo bash && exit 0 ) || exit $?
REQUIRED_SPACE_MB=18 # Need 17MB, use 18
TRUE=0
FALSE=1
@ -153,6 +154,19 @@ function check_can_upgrade {
if ! check_system_arch; then output+="System Architecture not supported!"; fi
fi
# Check free diskspace
mkdir -p "$TEMP_INSTALL"
free_space_mb=$(df -mP "$TEMP_INSTALL" 2>/dev/null | awk 'NR==2{print $4}' )
# Check if the df command was successful and if free_space_mb is a number
if [ -z "$free_space_mb" ] || ! [[ "$free_space_mb" =~ ^[0-9]+$ ]]; then
output+="Could not retrieve free space for directory: $TEMP_INSTALL"
else
if [ "$free_space_mb" -lt "$REQUIRED_SPACE_MB" ]; then
output+="Not enough disk space on directory: $TEMP_INSTALL! (Required $REQUIRED_SPACE_MB MB)"
fi
fi
if [[ "$output" == "" ]] && [[ "$REL_VERSION" != "" ]]; then
return "$TRUE"
else [[ "$output" != "" ]]