Created
August 14, 2020 11:25
-
-
Save bebyx/64af6cf8718d2df759aaf9bf14ed3fbd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
DIR=/home/bebyx/CI/ | |
inotifywait -m -e close_write "$DIR" | while read file; do | |
pkill java | |
sudo cp -R /home/bebyx/CI/eschool.jar /home/bebyx/eSchool/target/eschool.jar | |
sudo java -jar /home/bebyx/eSchool/target/eschool.jar --spring.config.location=file:///home/bebyx/eSchool/src/main/resources/application.properties > /home/bebyx/eschool2.log &2>/home/bebyx/eschool2err.log & | |
done | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment