bugfixing

This commit is contained in:
ggodot 2026-01-25 21:04:24 +01:00
parent df23b61c08
commit 02ef6fa014

View File

@ -7,6 +7,7 @@ printf "Idealy frome git directory. \n"
sleep 2
home=$(pwd)
# TODO add check if i am inside git repository
### RAM ###
@ -134,15 +135,15 @@ mkdir /opt/minecraft/config
while IFS= read -r line; do
if [[ $(echo $line | jq -r '.env.server') == "required" ]]; then
dw=$(echo $line | jq -r '.downloads[0]')
#wget -O mods/ $dw
dw_mr=$(echo $line | jq -r '.downloads[0]')
wget -O mods/ $dw_mr
fi
done < <(jq -c '.files[]' 'data/mr.index.json')
while IFS= read -r line; do
if [[ $(echo $line | jq -r '.env.server') == "required" ]]; then
dw=$(echo $line | jq -r '.downloads[0]')
#wget -O mods/ $dw
dw_cf=$(echo $line | jq -r '.downloads[0]')
wget -O mods/ $dw_cf
fi
done < <(jq -c '.files[]' 'data/cf.index.json')
@ -172,8 +173,8 @@ if [[ "$ansPlayerSync" =~ ["y"|"Y"] || -z $ansPlayerSync ]]; then
rndr=$((RANDOM % (32765-10000+1)+10000))
sed -i "s/1234567890/$rndr$rndr/g" config/playersync-common.toml #gens uniqe id
sed -i "s/KurevskeHesloMain/$password/g"
sed -i "s/mainUser/$user_name/g"
sed -i "s/KurevskeHesloMain/$password/g" config/playersync-common.toml
sed -i "s/mainUser/$user_name/g" config/playersync-common.toml
fi
@ -184,7 +185,7 @@ chown -R minecraft:minecraft /opt/minecraft
### SystemD service ###
printf "+ Preparign systemD service\n"
mv data/mc-forge.service /etc/systemd/system/
mv $home/data/mc-forge.service /etc/systemd/system/
systemctl daemon-reload