nprone-cli/install-service
2016-06-07 16:08:49 -04:00

10 lines
209 B
Bash
Executable file

#!/usr/bin/env bash
TEMPLATE='pm2.service'
SERVICE='/etc/systemd/system/pm2.service'
if [ -f $SERVICE ]; then
sudo cp $TEMPLATE $SERVICE
sudo systemctl enable $SERVICE
sudo systemctl start $SERVICE
fi