more mods fix

This commit is contained in:
ggodot 2026-01-29 20:28:57 +01:00
parent 6d7e95f2c4
commit ca725b8968

View File

@ -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 "-Xmx1G" >> /opt/minecraft/user_jvm_args.txt echo "-Xmx4G" >> /opt/minecraft/user_jvm_args.txt
elif [[ ! "$maxRam" =~ ("G"|"MB") ]]; then 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
@ -134,14 +134,14 @@ mkdir /opt/minecraft/config
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_mr=$(echo $line | jq -r '.downloads[0]') dw_mr=$(echo $line | jq -r '.downloads[0]')
wget /opt/minecraft/mods/ $dw_mr wget -P /opt/minecraft/mods/ $dw_mr
fi fi
done < <(jq -c '.files[]' "$home/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 /opt/minecraft/mods/ $dw_cf wget -P /opt/minecraft/mods/ $dw_cf
fi fi
done < <(jq -c '.files[]' "$home/data/cf.index.json") done < <(jq -c '.files[]' "$home/data/cf.index.json")