From fe1c7aaf6377ec07ac76ea39de29d2e9e58a0a28 Mon Sep 17 00:00:00 2001 From: CyberL1 Date: Sun, 7 Jul 2024 15:56:19 +0200 Subject: [PATCH] fix: setting rcon password for rcon-cli --- Minecraft-Realms-Emulator/Resources/files/template/entrypoint | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Minecraft-Realms-Emulator/Resources/files/template/entrypoint b/Minecraft-Realms-Emulator/Resources/files/template/entrypoint index 3abcd43..8e4ad6e 100644 --- a/Minecraft-Realms-Emulator/Resources/files/template/entrypoint +++ b/Minecraft-Realms-Emulator/Resources/files/template/entrypoint @@ -1,7 +1,7 @@ #!/bin/sh RCON_PASSWORD="$(openssl rand -hex 20)" -echo "password: $RCON_PASSWORD" >> /root/.rcon-cli.yaml +[ ! -f /root/.rcon-cli.yaml ] && echo "password: $RCON_PASSWORD" > /root/.rcon-cli.yaml [ ! -f eula.txt ] && echo "eula=true" > eula.txt