add missing free disk space check and remove memory check from non interactive options

This commit is contained in:
ronivay
2020-06-22 17:54:14 +03:00
parent c828866f77
commit 75d7d59db6

View File

@@ -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