i hate spelling issues
This commit is contained in:
parent
c339170ece
commit
73d49d00c8
@ -51,8 +51,8 @@ sleep 2
|
|||||||
|
|
||||||
printf "\n+ Starting to upgrade base system\n\n"
|
printf "\n+ Starting to upgrade base system\n\n"
|
||||||
|
|
||||||
apt update >>
|
apt update
|
||||||
apt upgrade -y >>
|
apt upgrade -y
|
||||||
apt autoremove --purge -y
|
apt autoremove --purge -y
|
||||||
|
|
||||||
|
|
||||||
@ -175,11 +175,11 @@ 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
|
||||||
|
|
||||||
if [[ $password -n ]]; then
|
if [[ -n $password ]]; then
|
||||||
sed -i "s/KurevskeHesloMain/$password/g" config/playersync-common.toml
|
sed -i "s/KurevskeHesloMain/$password/g" config/playersync-common.toml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $user_name -z ]]; then
|
if [[ -n $user_name ]]; then
|
||||||
sed -i "s/mainUser/$user_name/g" config/playersync-common.toml
|
sed -i "s/mainUser/$user_name/g" config/playersync-common.toml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -210,7 +210,7 @@ else
|
|||||||
read startServer
|
read startServer
|
||||||
|
|
||||||
if [[ "$startServer" =~ ("y"|"Y") || -z $startServer ]]; then
|
if [[ "$startServer" =~ ("y"|"Y") || -z $startServer ]]; then
|
||||||
systemctl start mc-forge.serice
|
systemctl start mc-forge
|
||||||
fi
|
fi
|
||||||
|
|
||||||
systemctl enable mc-forge
|
systemctl enable mc-forge
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user