17 lines
209 B
Bash
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
|