Merge pull request #6 from dieseltravis/patch-1

using `cp` instead of `mv`, fix spelling of "listener"
This commit is contained in:
Zach Levine 2019-07-21 20:29:58 -07:00 committed by GitHub
commit aa6c0669f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -5,14 +5,14 @@ set -e
cd "$(dirname "$0")/.." cd "$(dirname "$0")/.."
echo "=> Installing shutdown listener...\n" echo "=> Installing shutdown listener...\n"
sudo mv listen-for-shutdown.py /usr/local/bin/ sudo cp listen-for-shutdown.py /usr/local/bin/
sudo chmod +x /usr/local/bin/listen-for-shutdown.py sudo chmod +x /usr/local/bin/listen-for-shutdown.py
echo "=> Starting shutdown listener...\n" echo "=> Starting shutdown listener...\n"
sudo mv listen-for-shutdown.sh /etc/init.d/ sudo cp listen-for-shutdown.sh /etc/init.d/
sudo chmod +x /etc/init.d/listen-for-shutdown.sh sudo chmod +x /etc/init.d/listen-for-shutdown.sh
sudo update-rc.d listen-for-shutdown.sh defaults sudo update-rc.d listen-for-shutdown.sh defaults
sudo /etc/init.d/listen-for-shutdown.sh start sudo /etc/init.d/listen-for-shutdown.sh start
echo "Shutdown listner installed." echo "Shutdown listener installed."