add missing free disk space check and remove memory check from non interactive options
This commit is contained in:
@@ -726,18 +726,15 @@ function HandleArgs {
|
|||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--update)
|
--update)
|
||||||
CheckMemory
|
|
||||||
UpdateNodeYarn update
|
UpdateNodeYarn update
|
||||||
UpdateXO
|
UpdateXO
|
||||||
;;
|
;;
|
||||||
--install)
|
--install)
|
||||||
if [ $OSNAME == "CentOS" ]; then
|
if [ $OSNAME == "CentOS" ]; then
|
||||||
CheckMemory
|
|
||||||
InstallDependenciesCentOS
|
InstallDependenciesCentOS
|
||||||
InstallXO
|
InstallXO
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
CheckMemory
|
|
||||||
InstallDependenciesDebian
|
InstallDependenciesDebian
|
||||||
InstallXO
|
InstallXO
|
||||||
exit 0
|
exit 0
|
||||||
@@ -748,6 +745,7 @@ function HandleArgs {
|
|||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
CheckDiskFree
|
||||||
CheckMemory
|
CheckMemory
|
||||||
StartUpScreen
|
StartUpScreen
|
||||||
;;
|
;;
|
||||||
@@ -1023,6 +1021,7 @@ if [[ $# == "1" ]]; then
|
|||||||
HandleArgs "$1"
|
HandleArgs "$1"
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
|
CheckDiskFree
|
||||||
CheckMemory
|
CheckMemory
|
||||||
StartUpScreen
|
StartUpScreen
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user