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: scripts/install/tools/frontend/admin-control-panel-install.sh
+14-4Lines changed: 14 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -32,10 +32,20 @@ cp -a /usr/local/bin/enginescript/config/var/www/admin/control-panel/. /var/www/
32
32
# inline JS comments/strings in index.html, so we scope the substitution to only
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
-
sed -i "s|https://cdnjs.cloudflare.com/ajax/libs/font-awesome/{FONTAWESOME_VER}/css/all.min.css|https://cdnjs.cloudflare.com/ajax/libs/font-awesome/${FONTAWESOME_VER}/css/all.min.css|g" /var/www/admin/control-panel/index.html
36
-
# Verify that the Font Awesome placeholder was successfully replaced to avoid silent failures
37
-
if grep -q '{FONTAWESOME_VER}' /var/www/admin/control-panel/index.html;then
38
-
echo"Error: Failed to substitute Font Awesome version in index.html; placeholder {FONTAWESOME_VER} still present.">&2
0 commit comments