mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
*) Fixed bug where a number followed by characters was allowed as a valid value for the amount of memory which YaCy is allowed to consume.
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7427 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
parent
54e77e6255
commit
809e643ab7
|
@ -145,6 +145,11 @@ change_mem_settings()
|
|||
read INPUT
|
||||
|
||||
case $INPUT in
|
||||
*[^0-9]*)
|
||||
echo
|
||||
echo 'Please enter a number or just hit enter to abort.'
|
||||
change_mem_settings
|
||||
;;
|
||||
[0-9]*)
|
||||
replace_parameter 'javastart_Xmx' "Xmx$INPUT"'m'
|
||||
replace_parameter 'javastart_Xms' "Xms$INPUT"'m'
|
||||
|
@ -153,11 +158,6 @@ change_mem_settings()
|
|||
'')
|
||||
STATUS="$NOCHANGESTEXT"
|
||||
;;
|
||||
*)
|
||||
echo
|
||||
echo 'Please enter a number or just hit enter to abort.'
|
||||
change_mem_settings
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user