Skip to content

Commit 0af0a31

Browse files
PDowneyCopilot
andauthored
Update scripts/install/tools/frontend/admin-control-panel-install.sh
Co-authored-by: Copilot <[email protected]>
1 parent 49d8b61 commit 0af0a31

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ 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.
33-
sed -i "s|{FONTAWESOME_VER}|${FONTAWESOME_VER}|g" /var/www/admin/control-panel/index.html
31+
# Note: The Font Awesome version placeholder {FONTAWESOME_VER} may also appear in
32+
# inline JS comments/strings in index.html, so we scope the substitution to only
33+
# lines that reference the Font Awesome asset (containing 'fontawesome').
34+
sed -i "/fontawesome/ s|{FONTAWESOME_VER}|${FONTAWESOME_VER}|g" /var/www/admin/control-panel/index.html
3435
for file in index.html dashboard.js external-services/external-services.js; do
3536
sed -i "s|{ES_DASHBOARD_VER}|${ES_DASHBOARD_VER}|g" "/var/www/admin/control-panel/${file}"
3637
done

0 commit comments

Comments
 (0)