Przeglądaj źródła

Ensure upgrade script exists when running on same version

Kristan Kenney 5 lat temu
rodzic
commit
218e9503ea
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      func/upgrade.sh

+ 3 - 1
func/upgrade.sh

@@ -513,7 +513,9 @@ upgrade_start_routine() {
         echo "[ ! ] The latest version of Hestia Control Panel is already installed."
         echo "      Verifying configuration..."
         echo ""
-        source $HESTIA/install/upgrade/versions/$VERSION.sh
+        if [ -e "$HESTIA/install/upgrade/versions/$VERSION.sh" ]; then
+            source $HESTIA/install/upgrade/versions/$VERSION.sh
+        fi
         VERSION="$new_version"
         upgrade_set_version $VERSION
         upgrade_refresh_config