#!/bin/sh su - mc -c "cd /var/tools/pm2 && pm2 start startServer.json" # Init mod manager in 15 seconds, allow server to generate first sleep 15 && sh /var/tools/scripts/init-mod-manager.sh cd / # Run the specified commands con chmod 755 /home/mc chown mc:mc /home/mc/* -R chown mc:mc /home/mc/minecraft/.mod-manager # get log su - mc -c "pm2 log" tail -f /dev/null