From 02ef6fa014425c0f988c3aa98f7d8ff8a6a8c674 Mon Sep 17 00:00:00 2001 From: ggodot Date: Sun, 25 Jan 2026 21:04:24 +0100 Subject: [PATCH] bugfixing --- mc-install.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/mc-install.sh b/mc-install.sh index fe9afec..6dca8bd 100755 --- a/mc-install.sh +++ b/mc-install.sh @@ -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