Skip to content

Commit

Permalink
init: Correcting upgrade process
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Karl Pietrowski <thopiekar@gmail.com> (github: thopiekar)
  • Loading branch information
thopiekar committed Dec 19, 2016
1 parent 1fd88b0 commit 1bef995
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shared/openHAB.sh
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,9 @@ case "$1" in
## Migration from the old folder layout to the new:
## -> https://github.com/openhab/openhab-distro/pull/318
# Keeping karaf settings
if [ ! -d ${QPKG_DISTRIBUTION}/runtime/karaf/etc ]; then
if [ -d ${QPKG_DISTRIBUTION}/runtime/karaf/etc ]; then
cp -rf ${QPKG_DISTRIBUTION}/runtime/karaf/etc/* ${QPKG_TMP}/userdata/etc
rm -rf ${QPKG_DISTRIBUTION}/runtime/karaf/etc
fi
# Removing superfluous/orphaned files
rm -rf ${QPKG_DISTRIBUTION}/userdata/deploy
Expand Down

0 comments on commit 1bef995

Please sign in to comment.