-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Roman Malyugin
committed
Aug 6, 2018
1 parent
4138c33
commit 18b29a3
Showing
2 changed files
with
35 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
cd .. | ||
mvn clean | ||
cd com.kuguhome.openhab.prometheusmetrics.p2site/ | ||
mvn p2:site | ||
cd .. | ||
mvn install | ||
cd com.kuguhome.openhab.prometheusmetrics/ | ||
echo "Copying artifact to Raspberry Pi..." | ||
scp target/*.jar kugu-sz-roman:/usr/share/openhab2/addons | ||
echo "Deploying artifact to Raspberry Pi..." | ||
ssh kugu-sz-roman sudo systemctl restart openhab2 | ||
echo "Waiting till application being started..." | ||
sleep 30s | ||
sleep 60s | ||
echo "Fetching Rasberry Pi endpoint $1" | ||
curl $1 |
This file contains 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