Skip to content

Commit f379ca1

Browse files
committed
changed updatedom script (to pull/compile from github)
added updatebeta/updaterelease to quickly download/install new binary version
1 parent d3d7554 commit f379ca1

File tree

5 files changed

+45
-35
lines changed

5 files changed

+45
-35
lines changed

makebeta

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ then
5454
rm ${archive_file}.sha256sum
5555
fi
5656

57-
tar -zcf ${archive_file} domoticz History.txt License.txt domoticz.sh server_cert.pem --exclude .svn www/ scripts/ Config/
57+
tar -zcf ${archive_file} domoticz History.txt License.txt domoticz.sh server_cert.pem updatebeta updaterelease --exclude .svn www/ scripts/ Config/
5858
if [ $? -ne 0 ]
5959
then
6060
echo "Error creating archive!...";

makerelease

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ then
5454
rm ${archive_file}.sha256sum
5555
fi
5656

57-
tar -zcf ${archive_file} domoticz History.txt License.txt domoticz.sh server_cert.pem --exclude .svn www/ scripts/ Config/
57+
tar -zcf ${archive_file} domoticz History.txt License.txt domoticz.sh server_cert.pem updatebeta updaterelease --exclude .svn www/ scripts/ Config/
5858
if [ $? -ne 0 ]
5959
then
6060
echo "Error creating archive!...";

updatebeta

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh
2+
3+
# This script can be used to upgrade to the latest beta version
4+
# Please not that this is for ARMv6 ARMv7 systems only ! (for example a raspberry pi/cubie)
5+
6+
echo "Updating to latest beta version..."
7+
echo "Please Standby..."
8+
wget http://domoticz.sourceforge.net/beta/domoticz_linux_armv7l.tgz
9+
tar xvfz domoticz_linux_armv7l.tgz
10+
rm domoticz_linux_armv7l.tgz
11+
echo "Restarting Domoticz... (please standby...)"
12+
sudo service domoticz.sh restart

updatedomo

Lines changed: 18 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,24 @@
11
#!/bin/sh
22

3-
SVN_SERVER="svn://svn.code.sf.net/p/domoticz/code/trunk"
3+
# This script can be used to upgrade/compile to the latest version
4+
# Please not that all modifications on the original files are lost
45

5-
echo "Checking the server revision..."
6-
SERVER_REVISION=`svn log -l1 $SVN_SERVER | sed -n 2p | sed 's/.\([0-9][0-9][0-9][0-9]\).*/\1/'`
7-
echo "Server revision at $SERVER_REVISION"
8-
echo "Checking the working copy revision..."
9-
LOCAL_REVISION=`svn log -l1 | sed -n 2p | sed 's/.\([0-9][0-9][0-9][0-9]\).*/\1/'`
10-
echo "Working copy revision at $LOCAL_REVISION"
6+
echo "Updating to server revision..."
7+
git fetch --all
8+
git reset --hard origin/master
119

12-
if [ "$SERVER_REVISION" -eq "$LOCAL_REVISION" ]
10+
cmake -DCMAKE_BUILD_TYPE=Release .
11+
if [ $? -ne 0 ]
1312
then
14-
echo "Domoticz is up to date. Nothing to do."
15-
exit 1
16-
else
17-
svn update
18-
if [ $? -ne 0 ]
19-
then
20-
echo "svnupdate failed!";
21-
exit 1
22-
fi
23-
cmake -DCMAKE_BUILD_TYPE=Release .
24-
if [ $? -ne 0 ]
25-
then
26-
echo "CMake failed!";
27-
exit 1
28-
fi
29-
make
30-
if [ $? -ne 0 ]
31-
then
32-
echo "Compile failed!";
33-
exit 1
34-
fi
35-
# stop domoticz
36-
echo "Restarting Domoticz... (please standby...)"
37-
sudo service domoticz.sh stop
38-
sudo service domoticz.sh start
13+
echo "CMake failed!";
14+
exit 1
3915
fi
16+
make
17+
if [ $? -ne 0 ]
18+
then
19+
echo "Compile failed!";
20+
exit 1
21+
fi
22+
# Restart domoticz
23+
echo "Restarting Domoticz... (please standby...)"
24+
sudo service domoticz.sh restart

updaterelease

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/sh
2+
3+
# This script can be used to upgrade to the latest release version
4+
# Please not that this is for ARMv6 ARMv7 systems only ! (for example a raspberry pi/cubie)
5+
# It is NOT recommended to run this script if you are on a beta version
6+
7+
echo "Updating to latest beta version..."
8+
echo "Please Standby..."
9+
wget http://domoticz.sourceforge.net/domoticz_linux_armv7l.tgz
10+
tar xvfz domoticz_linux_armv7l.tgz
11+
rm domoticz_linux_armv7l.tgz
12+
echo "Restarting Domoticz... (please standby...)"
13+
sudo service domoticz.sh restart

0 commit comments

Comments
 (0)