ram bugfix, mods download
This commit is contained in:
parent
c80491ff9c
commit
cdf9b2c0cb
@ -95,7 +95,7 @@ elif [[ "$maxRam" =~ ("G"|"M") ]]; then
|
|||||||
echo "-Xmx$maxRam" >> /opt/minecraft/user_jvm_args.txt
|
echo "-Xmx$maxRam" >> /opt/minecraft/user_jvm_args.txt
|
||||||
elif [[ -z $maxRam ]]; then
|
elif [[ -z $maxRam ]]; then
|
||||||
printf "\n+ Allocating $MaxRam as RAM maximum"
|
printf "\n+ Allocating $MaxRam as RAM maximum"
|
||||||
echo "-Xmx4G" >> user_jvm_args.txt
|
echo "-Xmx4G" >> /opt/minecraft/user_jvm_args.txt
|
||||||
elif [[ ! "$maxRam" =~ ("G"|"MB") ]]; then
|
elif [[ ! "$maxRam" =~ ("G"|"MB") ]]; then
|
||||||
printf "\n+ Allocating ${maxRam}G as RAM maximum"
|
printf "\n+ 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
|
||||||
@ -137,14 +137,14 @@ while IFS= read -r line; do
|
|||||||
dw_mr=$(echo $line | jq -r '.downloads[0]')
|
dw_mr=$(echo $line | jq -r '.downloads[0]')
|
||||||
wget mods/ $dw_mr
|
wget mods/ $dw_mr
|
||||||
fi
|
fi
|
||||||
done < <(jq -c '.files[]' 'data/mr.index.json')
|
done < <(jq -c '.files[]' "$home/data/mr.index.json")
|
||||||
|
|
||||||
while IFS= read -r line; do
|
while IFS= read -r line; do
|
||||||
if [[ $(echo $line | jq -r '.env.server') == "required" ]]; then
|
if [[ $(echo $line | jq -r '.env.server') == "required" ]]; then
|
||||||
dw_cf=$(echo $line | jq -r '.downloads[0]')
|
dw_cf=$(echo $line | jq -r '.downloads[0]')
|
||||||
wget mods/ $dw_cf
|
wget mods/ $dw_cf
|
||||||
fi
|
fi
|
||||||
done < <(jq -c '.files[]' 'data/cf.index.json')
|
done < <(jq -c '.files[]' "$home/data/cf.index.json")
|
||||||
|
|
||||||
# adds mode to help comunicate with VeloProxy
|
# adds mode to help comunicate with VeloProxy
|
||||||
if [[ "$ansVeloProxy" =~ ["y"|"Y"] || -z $ansVeloProxy ]]; then
|
if [[ "$ansVeloProxy" =~ ["y"|"Y"] || -z $ansVeloProxy ]]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user