Skip to content

Commit

Permalink
Fix copy location in upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
kizniche authored Nov 24, 2024
1 parent e5be39b commit f8195b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mycodo/scripts/upgrade_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ runSelfUpgrade() {
fi
printf "Done.\n"

if [ -f "${CURRENT_MYCODO_DIRECTORY}"/config_override.py ] ; then
if [ -f "${CURRENT_MYCODO_DIRECTORY}"/mycodo/config_override.py ] ; then
printf "Copying config_override.py..."
if ! cp "${CURRENT_MYCODO_DIRECTORY}"/config_override.py "${THIS_MYCODO_DIRECTORY}" ; then
if ! cp "${CURRENT_MYCODO_DIRECTORY}"/mycodo/config_override.py "${THIS_MYCODO_DIRECTORY}/mycodo/" ; then
printf "Failed: Error while trying to copy config_override.py."
fi
printf "Done.\n"
Expand Down

0 comments on commit f8195b2

Please sign in to comment.