mc-cluster/velocity-image/start.sh
2024-12-06 05:52:08 -05:00

17 lines
209 B
Bash

#!/bin/sh
su - mc -c "cd /var/tools/pm2 && pm2 start startServer.json"
cd /
# Run the specified commands
con
chmod 755 /home/mc
chown mc:mc /home/mc/* -R
# get log
su - mc -c "pm2 log"
tail -f /dev/null