Skip to content

Commit

Permalink
add version to logging
Browse files Browse the repository at this point in the history
  • Loading branch information
henne49 committed May 27, 2024
1 parent 776d3c2 commit 1f19970
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion service/run
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/bin/sh
#Script Directory
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

#Define the version filename
FILENAME=$(realpath $SCRIPT_DIR/../version.txt)
exec 2>&1
#Check if the file exists
if [ -f "$FILENAME" ]; then
#If the file exists, print its contents to stdout
cat "$FILENAME"
fi
python $(realpath $SCRIPT_DIR/../dbus-opendtu.py)

0 comments on commit 1f19970

Please sign in to comment.