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
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,14 @@ All notable changes to EngineScript will be documented in this file.
4
4
5
5
Changes are organized by date, with the most recent changes listed first.
6
6
7
+
## 2026-03-24
8
+
9
+
### 🔧 ADMIN CONTROL PANEL INSTALL SCRIPT ROBUSTNESS FIXES
10
+
11
+
-**Added Font Awesome substitution validation** in `scripts/install/tools/frontend/admin-control-panel-install.sh`. After the `sed` substitution, a `grep` check verifies the `{FONTAWESOME_VER}` placeholder is no longer present in `index.html`; if it is, the script exits with an error to prevent silent failures when the CDN URL format changes.
12
+
-**Added `exit 1`** when the expected Adminer tool `<div>` is not found in `index.html` during Adminer card removal (`INSTALL_ADMINER=0`), so automated installations surface the failure instead of silently continuing.
13
+
-**Added nested `<div>` sanity check** before deleting the Adminer card block. The block is extracted first and its opening/closing `<div>` counts are compared; if they are not both exactly 1, removal is skipped with a warning to avoid corrupting the HTML structure.
Copy file name to clipboardExpand all lines: scripts/install/tools/frontend/admin-control-panel-install.sh
+20-1Lines changed: 20 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,13 @@ cp -a /usr/local/bin/enginescript/config/var/www/admin/control-panel/. /var/www/
33
33
# the specific Font Awesome CDN URL that contains the version segment. If the
34
34
# Font Awesome CDN path changes, update the pattern below accordingly.
35
35
sed -i 's|\(cdnjs\.cloudflare\.com/ajax/libs/font-awesome/\){FONTAWESOME_VER}\(/css/all\.min\.css\)|\1'"${FONTAWESOME_VER}"'\2|g' /var/www/admin/control-panel/index.html
36
+
37
+
# Verify that the Font Awesome placeholder was successfully replaced to avoid silent failures
38
+
if grep -q '{FONTAWESOME_VER}' /var/www/admin/control-panel/index.html;then
39
+
echo"Error: Failed to substitute Font Awesome version in index.html; placeholder {FONTAWESOME_VER} still present.">&2
0 commit comments