diff --git a/script/init.sh b/script/init.sh index 013f883..5225de0 100755 --- a/script/init.sh +++ b/script/init.sh @@ -13,6 +13,17 @@ chmod 600 .ssh/proxy echo "$SCHEMATIC_KEY" > .ssh/id_rsa ssh-keyscan github.com >> .ssh/known_hosts +# Make certain files read-only + +touch banned-ips.json +touch banned-players.json +touch ops.json +touch whitelist.json +chmod 400 banned-ips.json +chmod 400 banned-players.json +chmod 400 ops.json +chmod 400 whitelist.json + # Run scripts for starting the Minecraft server, reverse proxy and schematic # checker in the background