bugfixing
This commit is contained in:
parent
df23b61c08
commit
02ef6fa014
@ -7,6 +7,7 @@ printf "Idealy frome git directory. \n"
|
|||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
home=$(pwd)
|
home=$(pwd)
|
||||||
|
# TODO add check if i am inside git repository
|
||||||
|
|
||||||
|
|
||||||
### RAM ###
|
### RAM ###
|
||||||
@ -134,15 +135,15 @@ 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=$(echo $line | jq -r '.downloads[0]')
|
dw_mr=$(echo $line | jq -r '.downloads[0]')
|
||||||
#wget -O mods/ $dw
|
wget -O mods/ $dw_mr
|
||||||
fi
|
fi
|
||||||
done < <(jq -c '.files[]' 'data/mr.index.json')
|
done < <(jq -c '.files[]' '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=$(echo $line | jq -r '.downloads[0]')
|
dw_cf=$(echo $line | jq -r '.downloads[0]')
|
||||||
#wget -O mods/ $dw
|
wget -O mods/ $dw_cf
|
||||||
fi
|
fi
|
||||||
done < <(jq -c '.files[]' 'data/cf.index.json')
|
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))
|
rndr=$((RANDOM % (32765-10000+1)+10000))
|
||||||
sed -i "s/1234567890/$rndr$rndr/g" config/playersync-common.toml #gens uniqe id
|
sed -i "s/1234567890/$rndr$rndr/g" config/playersync-common.toml #gens uniqe id
|
||||||
sed -i "s/KurevskeHesloMain/$password/g"
|
sed -i "s/KurevskeHesloMain/$password/g" config/playersync-common.toml
|
||||||
sed -i "s/mainUser/$user_name/g"
|
sed -i "s/mainUser/$user_name/g" config/playersync-common.toml
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -184,7 +185,7 @@ chown -R minecraft:minecraft /opt/minecraft
|
|||||||
|
|
||||||
### SystemD service ###
|
### SystemD service ###
|
||||||
printf "+ Preparign systemD service\n"
|
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
|
systemctl daemon-reload
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user