File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616
1717# check if version.txt exists and is larger than 2.0.0
1818if [ -f $SCRIPT_DIR /version.txt ] &&
19- ( [ " $( grep -o ' Version: [^ ]*' version.txt | cut -d' ' -f2) " = " 2.0.0" ] ||
20- [ " $( grep -o ' Version: [^ ]*' version.txt | cut -d' ' -f2) " \> " 2.0.0" ] ); then
19+ ( [ " $( grep -o ' Version: [^ ]*' $SCRIPT_DIR / version.txt | cut -d' ' -f2) " = " 2.0.0" ] ||
20+ [ " $( grep -o ' Version: [^ ]*' $SCRIPT_DIR / version.txt | cut -d' ' -f2) " \> " 2.0.0" ] ); then
2121 # delete old dbus-opendtu.py file
2222 if [ -f $SCRIPT_DIR /dbus-opendtu.py ]; then
2323 rm $SCRIPT_DIR /dbus-opendtu.py
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ if [ -d /service/$SERVICE_NAME ]; then
1010fi
1111
1212# end the dbus-opendtu process
13+ kill $( pgrep -f " supervise $SERVICE_NAME \$ " )
1314kill $( pgrep -f " python $SCRIPT_DIR /dbus_opendtu.py" )
1415
1516# delete old logs if they exist
You can’t perform that action at this time.
0 commit comments