Use alternative method for applying admin css.

This commit is contained in:
purple 2023-07-21 16:53:03 +02:00
parent 7f0d342af2
commit bff8733018

View file

@ -112,7 +112,7 @@ if [[ $1 != "-bash" ]]; then
# Inject custom Blueprint css into Pterodactyl's admin panel. # Inject custom Blueprint css into Pterodactyl's admin panel.
log_bright "[INFO] updating admin css"; log_bright "[INFO] updating admin css";
sed -i "s!@import url(/assets/extensions/blueprint/blueprint.style.css);\n/* admin.css */!!g" /var/www/$FOLDER/public/themes/pterodactyl/css/pterodactyl.css; sed -i "s!@import url(/assets/extensions/blueprint/blueprint.style.css);\n/* admin.css */!!g" /var/www/$FOLDER/public/themes/pterodactyl/css/pterodactyl.css;
sed -i '1s/^/@import url(/assets/extensions/blueprint/blueprint.style.css);\n/* admin.css */\n/' /var/www/$FOLDER/public/themes/pterodactyl/css/pterodactyl.css; sed -i '1i@import url(/assets/extensions/blueprint/blueprint.style.css);\n/* admin.css */' /var/www/$FOLDER/public/themes/pterodactyl/css/pterodactyl.css;
# Clear view cache. # Clear view cache.
log_bright "[INFO] php artisan view:clear"; log_bright "[INFO] php artisan view:clear";