This commit is contained in:
luk.lu
2019-10-09 13:35:37 +08:00
parent 517634b735
commit a63b8df1f4
2 changed files with 5 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ echo ">>> set autostart"
mv /etc/rc.local /etc/rc.local.backup
touch /etc/rc.local
chmod +x /etc/rc.local
echo '#!/bin/bash' > /etc/local # can't omit, otherwise you can't launch pm2 in autostart.sh. Don't use double quote here, otherwise error.
echo '#!/bin/bash' > /etc/rc.local # can't omit, otherwise you can't launch pm2 in autostart.sh. Don't use double quote here, otherwise error.
echo 'source /root/autostart.sh' >> /etc/rc.local # make sure to sudo pm2 in autostart.sh, otherwise pm2 list can't find it as root.
touch /root/autostart.sh
chmod +x /root/autostart.sh