You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,7 @@ Changes are organized by date, with the most recent changes listed first.
87
87
- Kept the unified conditional extraction logic as the single source of truth for both `single_zip` and `two_file` import formats.
88
88
- Fixed the import start log message in `scripts/functions/vhost/vhost-import.sh` to conditionally reference `SINGLE_ZIP_FILE` for `single_zip` format, `WP_ARCHIVE_FILE`/`DB_SOURCE_PATH` for `original` format, or a generic fallback for other formats, instead of always referencing the empty `WP_ARCHIVE_FILE`.
89
89
- Removed leftover debug `echo` statements (`DEBUG: Attempting to set prefix` and `DEBUG: sed command exit status for prefix`) from production code in `scripts/functions/vhost/vhost-import.sh`.
90
-
- Added cleanup logic to move `SINGLE_ZIP_FILE` to `BACKUP_DIR` when `IMPORT_FORMAT` is `single_zip`, matching the existing two-file cleanup behaviour.
90
+
- Added cleanup logic to move `SINGLE_ZIP_FILE` to `BACKUP_DIR` when `IMPORT_FORMAT` is `single_zip`, matching the existing two-file cleanup behavior.
91
91
- Fixed the site-verification failure message to reference `SINGLE_ZIP_FILE` instead of `DB_SOURCE_PATH` when `WP_ARCHIVE_FILE` is unset, correctly identifying the original import file for `single_zip` imports.
sed -E -i -e "$(printf "$FASTCGI_EXPR""$OLD_VER_ERE""$NEW_PHP_VER_REPL")""$config_file"
147
+
sed -E -i -e "s|(fastcgi_pass[[:space:]]+[^;]*php)${OLD_VER//./\.}(-fpm)|\1${NEW_PHP_VER}\2|g""$config_file"
169
148
done
170
149
fi
171
150
done
@@ -174,15 +153,15 @@ done
174
153
if [[ -f"/var/www/admin/tools/phpsysinfo/phpsysinfo.ini" ]];then
175
154
echo"Updating phpSysInfo configuration..."
176
155
forOLD_VERin"${MIGRATION_SOURCE_PHP_VERS[@]}";do
177
-
sed -E -i "s|^([[:space:]]*[[:alnum:]_.-]+[[:space:]]*=[[:space:]]*.*)php${OLD_VER}(-fpm)?|\1php${NEW_PHP_VER}\2|g""/var/www/admin/tools/phpsysinfo/phpsysinfo.ini"
156
+
sed -E -i "s|^([[:space:]]*[[:alnum:]_.-]+[[:space:]]*=[[:space:]]*.*)php${OLD_VER//./\.}(-fpm)?|\1php${NEW_PHP_VER}\2|g""/var/www/admin/tools/phpsysinfo/phpsysinfo.ini"
178
157
done
179
158
fi
180
159
181
160
# Update admin control panel API configuration
182
161
if [[ -f"/var/www/admin/control-panel/api.php" ]];then
183
162
echo"Updating admin control panel API configuration..."
184
163
forOLD_VERin"${MIGRATION_SOURCE_PHP_VERS[@]}";do
185
-
sed -E -i "/(php-fpm|fastcgi_pass|sock(et)?|service)/ s|(php)${OLD_VER}(-fpm)?|\1${NEW_PHP_VER}\2|g""/var/www/admin/control-panel/api.php"
164
+
sed -E -i "/(php-fpm|fastcgi_pass|sock(et)?|service)/ s|(php)${OLD_VER//./\.}(-fpm)?|\1${NEW_PHP_VER}\2|g""/var/www/admin/control-panel/api.php"
0 commit comments