mods works, ram test
This commit is contained in:
parent
ca725b8968
commit
ddadc2be44
@ -86,6 +86,8 @@ java -Xms512M -Xmx2048M -jar NeoForge.jar --installServer >> /dev/null
|
|||||||
|
|
||||||
### RAM configuration ###
|
### RAM configuration ###
|
||||||
|
|
||||||
|
echo "test" >> /opt/minecraft/user_jvm_args.txt
|
||||||
|
|
||||||
if [[ "$minRam" > "$maxRam" ]]; then
|
if [[ "$minRam" > "$maxRam" ]]; then
|
||||||
pritf "\n You allocated too low max ram or too much min ram. Manual intervention at the end will be needed\n"
|
pritf "\n You allocated too low max ram or too much min ram. Manual intervention at the end will be needed\n"
|
||||||
echo "-Xmx?G # in place of ? put number of RAM you want to set ass maximum"
|
echo "-Xmx?G # in place of ? put number of RAM you want to set ass maximum"
|
||||||
@ -100,7 +102,7 @@ elif [[ ! "$maxRam" =~ ("G"|"MB") ]]; then
|
|||||||
printf "Allocating ${maxRam}G as RAM maximum"
|
printf "Allocating ${maxRam}G as RAM maximum"
|
||||||
echo "-Xmx${maxRam}G" >> /opt/minecraft/user_jvm_args.txt
|
echo "-Xmx${maxRam}G" >> /opt/minecraft/user_jvm_args.txt
|
||||||
else
|
else
|
||||||
pritnf "\n!!! Sorry I have no idea what are you trying to do :/ Manual intervention will be needed at the end \n"
|
printf "\n!!! Sorry I have no idea what are you trying to do :/ Manual intervention will be needed at the end \n"
|
||||||
$maxRam="Error"
|
$maxRam="Error"
|
||||||
echo "-Xms?G # in place of ? put number of RAM you want to set as maximum"
|
echo "-Xms?G # in place of ? put number of RAM you want to set as maximum"
|
||||||
fi
|
fi
|
||||||
@ -218,3 +220,4 @@ printf "\n+ Done, thanks for your time. It is goode idea to chack if everythink
|
|||||||
printf "\nsystemctl status mc-forge"
|
printf "\nsystemctl status mc-forge"
|
||||||
printf "\nsu minecraft -s /bin/bash"
|
printf "\nsu minecraft -s /bin/bash"
|
||||||
printf "\n+ it is good idea to have some fun with screen before trying to open minecraft conesole 'screen -r' while loged wia minecraft user"
|
printf "\n+ it is good idea to have some fun with screen before trying to open minecraft conesole 'screen -r' while loged wia minecraft user"
|
||||||
|
printf "\n"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user