Skip to content

Commit 9b8da1b

Browse files
committed
update: Apply file ownership for files created by upgradetool
Signed-off-by: Florian Hotze <dev@florianhotze.com>
1 parent 85824bc commit 9b8da1b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • distributions/openhab/src/main/resources/bin

distributions/openhab/src/main/resources/bin/update

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,8 @@ java -jar "$WorkingDir/runtime/bin/upgradetool.jar" || {
363363
echo "Update tool failed, please check the openHAB website (www.openhab.org) for manual update instructions." >&2
364364
exit 1
365365
}
366+
# Apply file ownership for JSON database as upgradetool can create new files
367+
chown -R "$FileOwner:$FileGroup" "$OPENHAB_USERDATA/jsondb"
366368
echo "JSON database updated successfully."
367369

368370
echo ""

0 commit comments

Comments
 (0)