#!/bin/bash ########################################################### ### source <(curl -fsSL https://raw.lhy.life/node-pm2.sh) ########################################################### source <(curl -fsSL https://raw.lhy.life/node.sh) npm install pm2 -g pm2 install pm2-logrotate pm2 set pm2-logrotate:rotateInterval '1 0 * * 3' pm2 startup