From 1a8a875f203a7ea56b3f8dd4860883623cc6bb17 Mon Sep 17 00:00:00 2001 From: Stefan Pejcic Date: Fri, 25 Oct 2024 20:31:44 +0200 Subject: [PATCH] Update UPDATE.sh --- version/0.3.3/UPDATE.sh | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/version/0.3.3/UPDATE.sh b/version/0.3.3/UPDATE.sh index d4708db8..5ab65413 100644 --- a/version/0.3.3/UPDATE.sh +++ b/version/0.3.3/UPDATE.sh @@ -77,9 +77,6 @@ FUNCTIONS=( #notify user we started print_header - # /etc/openpanel/ - update_configuration_files - # update docker openpanel image download_new_panel @@ -90,7 +87,6 @@ FUNCTIONS=( add_two_columns_to_plans ######################################### - # update opencli opencli_update @@ -156,34 +152,6 @@ print_space_and_line() { -update_configuration_files() { - echo "Updating configuration files in /etc/openpanel/" - mkdir -p /etc/openpanel-${PREVIOUS_VERSION}/ - cp -r /etc/openpanel/ /etc/openpanel-${PREVIOUS_VERSION}/ - cd /etc/openpanel/ - - git stash # stash local conf - - # update from gh - if git pull origin main; then - echo "Successfully pulled the latest changes." - else - echo "There were merge conflicts." - if git ls-files -u | grep -q "^"; then - echo "Conflicted files:" - git ls-files -u - else - echo "No conflicts, but pull failed for another reason." - fi - fi - - git stash pop # restore local conf - mv /etc/openpanel/openadmin/config/terms /etc/openpanel/openadmin/config/terms_accepted_on_update -} - - - - restart_admin_panel_if_needed() { echo "Restarting OpenAdmin service.." service admin restart