Skip to content

Commit 218e950

Browse files
author
Kristan Kenney
committed
Ensure upgrade script exists when running on same version
1 parent 78e8a1d commit 218e950

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

func/upgrade.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,9 @@ upgrade_start_routine() {
513513
echo "[ ! ] The latest version of Hestia Control Panel is already installed."
514514
echo " Verifying configuration..."
515515
echo ""
516-
source $HESTIA/install/upgrade/versions/$VERSION.sh
516+
if [ -e "$HESTIA/install/upgrade/versions/$VERSION.sh" ]; then
517+
source $HESTIA/install/upgrade/versions/$VERSION.sh
518+
fi
517519
VERSION="$new_version"
518520
upgrade_set_version $VERSION
519521
upgrade_refresh_config

0 commit comments

Comments
 (0)