Blame | Last modification | View Log
#!/bin/sh# This script can be used to upgrade/compile to the latest version# Please note that all modifications on the original files are lostecho "Updating to server revision..."git fetch --allgit reset --hard origin/mastercmake -DCMAKE_BUILD_TYPE=Release .if [ $? -ne 0 ]thenecho "CMake failed!";exit 1fimakeif [ $? -ne 0 ]thenecho "Compile failed!";exit 1fi# Restart domoticzecho "Restarting Domoticz... (please standby...)"sudo service domoticz.sh restart