File tree Expand file tree Collapse file tree 5 files changed +45
-35
lines changed Expand file tree Collapse file tree 5 files changed +45
-35
lines changed Original file line number Diff line number Diff line change 54
54
rm ${archive_file} .sha256sum
55
55
fi
56
56
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/
58
58
if [ $? -ne 0 ]
59
59
then
60
60
echo " Error creating archive!..." ;
Original file line number Diff line number Diff line change 54
54
rm ${archive_file} .sha256sum
55
55
fi
56
56
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/
58
58
if [ $? -ne 0 ]
59
59
then
60
60
echo " Error creating archive!..." ;
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
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
4
5
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
11
9
12
- if [ " $SERVER_REVISION " -eq " $LOCAL_REVISION " ]
10
+ cmake -DCMAKE_BUILD_TYPE=Release .
11
+ if [ $? -ne 0 ]
13
12
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
39
15
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
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments