From 34bee00c5b3eb4503cf3f0be06ac33b6ecc380ee Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Wed, 13 Feb 2013 15:36:40 +0200 Subject: [PATCH] minimum ram requried: 350mb --- install/vst-install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install/vst-install.sh b/install/vst-install.sh index d4838f030..4220694f6 100644 --- a/install/vst-install.sh +++ b/install/vst-install.sh @@ -131,8 +131,11 @@ if [ ! -z "$conflicts" ] && [ -z "$force" ]; then fi # Check server type -if [ "$memory" -lt '350000' ]; then +if [ "$memory" -lt '350000' ] && [ -z "$force" ]; then echo "Error: not enought memory to install Vesta Control Panel." + echo -e "\nMinimum RAM requried: 350Mb" + echo 'If you want to force installation run this script with -f option:' + echo "Example: bash $0 --force" exit 1 fi srv_type='micro'