fix: setting rcon password for rcon-cli

This commit is contained in:
CyberL1 2024-07-07 15:56:19 +02:00
parent b6a73df815
commit fe1c7aaf63

View File

@ -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