mirror of https://github.com/sfeakes/AqualinkD.git
Update 2.6.2
parent
47c56ee5d4
commit
c04ec5ce01
|
@ -131,6 +131,10 @@ NEED TO FIX FOR THIS RELEASE.
|
||||||
* New install and remote_install scripts.
|
* New install and remote_install scripts.
|
||||||
* Changed MQTT posting frequency when Timers are enabled for better
|
* Changed MQTT posting frequency when Timers are enabled for better
|
||||||
* Updates for new repo location. [AqualinkD organization](https://github.com/aqualinkd/AqualinkD)
|
* 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
|
# Updates in 2.6.1
|
||||||
* Added External Sensors to Web UI & HomeKit.
|
* Added External Sensors to Web UI & HomeKit.
|
||||||
|
|
|
@ -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.
|
# 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 $?
|
# 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
|
TRUE=0
|
||||||
FALSE=1
|
FALSE=1
|
||||||
|
@ -153,6 +154,19 @@ function check_can_upgrade {
|
||||||
if ! check_system_arch; then output+="System Architecture not supported!"; fi
|
if ! check_system_arch; then output+="System Architecture not supported!"; fi
|
||||||
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
|
if [[ "$output" == "" ]] && [[ "$REL_VERSION" != "" ]]; then
|
||||||
return "$TRUE"
|
return "$TRUE"
|
||||||
else [[ "$output" != "" ]]
|
else [[ "$output" != "" ]]
|
||||||
|
|
Loading…
Reference in New Issue