Skip to content

Commit

Permalink
Move location of key.pem to reduce clutter
Browse files Browse the repository at this point in the history
  • Loading branch information
UplandJacob authored Jan 19, 2025
1 parent ca8d5cc commit 57e19ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mc-all-platform-velocity/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ getConfig() {
}

# check for key.pem (for floodgate and geyser)
if [[ ! -f "/config/key.pem" ]]; then
if [[ ! -f "/config/geyser/key.pem" ]]; then
logGreen "no key.pem file found. Temporarily starting proxy to generate one."

tmpfile=$(mktemp)
Expand Down Expand Up @@ -40,11 +40,11 @@ if [[ ! -f "/config/key.pem" ]]; then
rm -f $tmpfile

logGreen "copying key.pem to config folder..."
cp /plugins/floodgate/key.pem /config/key.pem
cp /plugins/floodgate/key.pem /config/geyser/key.pem
fi
logGreen "copying key.pem into plugin folders..."
cp /config/key.pem /plugins/Geyser-Velocity/key.pem
cp /config/key.pem /plugins/floodgate/key.pem
cp /config/geyser/key.pem /plugins/Geyser-Velocity/key.pem
cp /config/geyser/key.pem /plugins/floodgate/key.pem

################################################
logGreen "Generating config files..."
Expand Down

0 comments on commit 57e19ef

Please sign in to comment.