Skip to content

Commit 8dcb7a9

Browse files
CopilotPDowney
andcommitted
Fix admin control panel install: add FONTAWESOME_VER comment and fix adminer sed range
Co-authored-by: PDowney <[email protected]> Agent-Logs-Url: https://github.com/EngineScript/EngineScript/sessions/d1324dd1-545e-4334-b8d6-122069e95038
1 parent 28546ca commit 8dcb7a9

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to EngineScript will be documented in this file.
44

55
Changes are organized by date, with the most recent changes listed first.
66

7+
## 2026-03-20
8+
9+
### 🔧 ADMIN CONTROL PANEL INSTALL SCRIPT FIXES
10+
11+
- **Added explanatory comment** in `scripts/install/tools/frontend/admin-control-panel-install.sh` clarifying that the `{FONTAWESOME_VER}` placeholder only appears in `index.html`, so its substitution is intentionally scoped to that file rather than included in the multi-file loop.
12+
- **Fixed sed range command** used to remove the Adminer tool card (`adminer-tool` div) when `INSTALL_ADMINER=0`. Changed `{1d;$d;}` to `d` so the command deletes all lines in the matching range, not only the first and last lines of the range.
13+
714
## 2026-03-03
815

916
### 🌐 NON-WORDPRESS DOMAIN SUPPORT (Tasks 113 & 114)

scripts/install/tools/frontend/admin-control-panel-install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ mkdir -p /var/www/admin/control-panel
2828
cp -a /usr/local/bin/enginescript/config/var/www/admin/control-panel/. /var/www/admin/control-panel/
2929

3030
# Substitute frontend dependency versions
31+
# Note: The Font Awesome version placeholder {FONTAWESOME_VER} is only used in index.html,
32+
# so we only need to substitute it in that file.
3133
sed -i "s|{FONTAWESOME_VER}|${FONTAWESOME_VER}|g" /var/www/admin/control-panel/index.html
3234
for file in index.html dashboard.js external-services/external-services.js; do
3335
sed -i "s|{ES_DASHBOARD_VER}|${ES_DASHBOARD_VER}|g" "/var/www/admin/control-panel/${file}"
@@ -40,7 +42,7 @@ if [[ "${INSTALL_ADMINER}" -eq 0 ]]; then
4042
# - the opening <div> with id="adminer-tool" and its matching closing </div> must each be on a single line
4143
# - the block must not contain nested <div> elements whose closing tags appear before the end of the card
4244
# If this structure changes, update this command (or switch to an HTML-aware tool) to avoid partial removal.
43-
sed -i '/<div[^>]*id="adminer-tool"[^>]*>/,/<\/div>/{1d;$d;}' "/var/www/admin/control-panel/index.html"
45+
sed -i '/<div[^>]*id="adminer-tool"[^>]*>/,/<\/div>/d' "/var/www/admin/control-panel/index.html"
4446
fi
4547

4648
# Set permissions for the EngineScript frontend

0 commit comments

Comments
 (0)