Skip to content

Commit dbadd1e

Browse files
committed
Update to 1.19
1 parent 62f40a8 commit dbadd1e

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ There are 2 choices for the alternative java (providing /usr/bin/java).
5959
<li>Update to Paper experimental 1.19 release as default installation</li>
6060
<li>Make sure you have backups of your server from your "backups" folder stored separately before upgrading</li>
6161
<li>If you have problems with 1.19 you need to restore a backup to go back to 1.18 as it will not take your server data files on 1.18 once the 1.19 structures/data have been added</li>
62+
<li>Change update.sh to /bin/bash instead of /bin/sh</li>
63+
<li>Add PATH variable to update.sh</li>
6264
</ul>
6365

6466
<h3>May 22nd 2022</h3>

SetupMinecraft.sh

+1
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ Update_Scripts() {
158158
echo "Grabbing update.sh from repository..."
159159
curl -H "Accept-Encoding: identity" -L -o update.sh https://raw.githubusercontent.com/TheRemote/RaspberryPiMinecraft/master/update.sh
160160
chmod +x update.sh
161+
sed -i "s<pathvariable<$PATH<g" update.sh
161162
}
162163

163164
# Updates Minecraft service

update.sh

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
# Author: James A. Chambers - https://jamesachambers.com/
33
# More information at https://jamesachambers.com/raspberry-pi-minecraft-server-script-with-startup-service/
44
# GitHub Repository: https://github.com/TheRemote/RaspberryPiMinecraft
55
# Calls the latest SetupMinecraft.sh setup script
66

7+
# Set path variable
8+
USERPATH="pathvariable"
9+
PathLength=${#USERPATH}
10+
if [[ "$PathLength" -gt 12 ]]; then
11+
PATH="$USERPATH"
12+
else
13+
echo "Unable to set path variable. You likely need an updated version of SetupMinecraft.sh from GitHub!"
14+
fi
15+
716
# Check to make sure we aren't running as root
817
if [[ $(id -u) = 0 ]]; then
918
echo "This script is not meant to run as root or sudo. Please run as a normal user with ./update.sh. Exiting..."

0 commit comments

Comments
 (0)