diff --git a/bin/v-bunkerweb-migrate b/bin/v-bunkerweb-migrate index 246a9c6..972cc03 100755 --- a/bin/v-bunkerweb-migrate +++ b/bin/v-bunkerweb-migrate @@ -62,7 +62,7 @@ def log_migrate_stage(stage) yield # Record the successful stage File.open(log_file, 'a') { |f| f.puts stage } - hestia_print_error_message_to_cli "Stage #{stage} completed." + hestia_print_info_message_to_cli "Stage #{stage} completed." rescue => e hestia_print_error_message_to_cli "Stage #{stage} failed: #{e.message}" exit 1 @@ -165,10 +165,12 @@ when :migratenginx # Find all files under the nginx-system directory nginx_conf_dir = '/usr/local/hestia/nginx-system/etc/nginx' Dir.glob(File.join(nginx_conf_dir, '**', '*')).each do |path| + hestia_print_info_message_to_cli "stage 4 processing file #{path}" next if File.directory?(path) content = File.read(path) new_content = content.gsub(/(?:#{$PROXY_PORT} [flags]; # Matches: listen 192.168.3.81:80; or listen 192.168.3.81:80 default_server; - new_content = content.gsub(/(?:#{$PROXY_SSL_PORT} ssl; if new_content == content - new_content = content.gsub(/(?