using `cp` instead of `mv`, fix spelling of "listener"

This commit is contained in:
Travis Hardiman 2019-01-25 18:28:35 -05:00 committed by GitHub
parent f9c489c350
commit 5fbcd5e6de
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."