Skip to content

Commit

Permalink
Hot fix - Release 7.1.020
Browse files Browse the repository at this point in the history
  • Loading branch information
pipiche38 committed Jan 25, 2025
1 parent b6f2803 commit af1d9e1
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .hidden/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"branch": "stable7", "version": "7.1.019"}
{"branch": "stable7", "version": "7.1.020"}
5 changes: 5 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ Release Numbering
- Odd numbers --> Stable/7
- Even numbers --> Beta/7 (dev branch)

## Jan. 2025 - stable7.1.020 (2025.2) - hot fix

- [Issue] - fix issue which was preventing upgrading from 018 to later version


## Jan. 2025 - stable7.1.019 (2025.1)

- [Hardware] - Improve ZLinky integration with a better management of Color changes.
Expand Down
29 changes: 27 additions & 2 deletions Tools/plugin-auto-upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,38 @@ install_pip_on_debian() {
# Function to update git configuration
update_git_config() {
echo "(1) git config --global --add safe.directory"
git config --global --add safe.directory $(pwd)
# Define the directory you want to add
directory_to_add=$(pwd)

# Get the list of currently configured safe directories
configured_directories=$(git config --get-all --global safe.directory)

# Check if the directory is already configured
if [[ "$configured_directories" != *"$directory_to_add"* ]]; then
# Add the directory if it is not already configured
git config --global --add safe.directory "$directory_to_add"
echo "Directory added: $directory_to_add"
else
echo "Directory already configured: $directory_to_add"
fi

echo " "
echo "(2) updating Zigbee for Domoticz plugin"
echo ""
git pull
#git pull --recurse-submodules && git submodule update --recursive
ret="$?"
if [ "$ret" != "0" ] ; then
echo "ERROR while running command 'git pull --recurse-submodules'."
echo "Git Status: $(git status)"
exit -1
fi
}

# Function to update python modules
update_python_modules() {
echo " "
echo "(2) update $PYTHON_VERSION modules if needed"
echo "(3) update $PYTHON_VERSION modules if needed"
echo ""
if [ "$VENV_ACTIVATED" = true ]; then
$VENV_PATH/bin/python3 -m pip $PIP_OPTIONS -t $VENV_PATH
Expand Down

0 comments on commit af1d9e1

Please sign in to comment.