From c48de6859bc6cd32f54f652b3022b1a4bfd63aec Mon Sep 17 00:00:00 2001 From: prplwtf Date: Mon, 19 Aug 2024 12:30:46 +0200 Subject: [PATCH] feat `blueprint.sh` `install.sh` `remove.sh`: use new bp:cache artisan command instead of updateCacheReminder --- blueprint.sh | 2 +- scripts/commands/extensions/install.sh | 2 +- scripts/commands/extensions/remove.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/blueprint.sh b/blueprint.sh index 43abfed..ab526d1 100644 --- a/blueprint.sh +++ b/blueprint.sh @@ -262,8 +262,8 @@ if [[ $1 != "-bash" ]]; then php artisan config:cache php artisan route:clear php artisan cache:clear + php artisan bp:cache } &>> "$BLUEPRINT__DEBUG" - updateCacheReminder # Run migrations if Blueprint is not upgrading. if [[ ( $1 != "--post-upgrade" ) && ( $DOCKER != "y" ) ]]; then diff --git a/scripts/commands/extensions/install.sh b/scripts/commands/extensions/install.sh index c42bfad..ddfaed9 100644 --- a/scripts/commands/extensions/install.sh +++ b/scripts/commands/extensions/install.sh @@ -1050,7 +1050,6 @@ InstallExtension() { if [[ $admin_css != "" ]]; then PRINT INFO "Cloning and linking admin css.." - updateCacheReminder sed -i "s~@import url(/assets/extensions/$identifier/admin.style.css);~~g" ".blueprint/extensions/blueprint/assets/admin.extensions.css" echo -e "@import url(/assets/extensions/$identifier/admin.style.css);" >> ".blueprint/extensions/blueprint/assets/admin.extensions.css" cp ".blueprint/tmp/$n/$admin_css" ".blueprint/extensions/$identifier/assets/admin.style.css" @@ -1289,6 +1288,7 @@ Command() { php artisan config:cache php artisan route:clear if [[ $KeepApplicationCache != "true" ]]; then php artisan cache:clear; fi + php artisan bp:cache } &>> "$BLUEPRINT__DEBUG" # Make sure all files have correct permissions. diff --git a/scripts/commands/extensions/remove.sh b/scripts/commands/extensions/remove.sh index 711ed00..ea99561 100644 --- a/scripts/commands/extensions/remove.sh +++ b/scripts/commands/extensions/remove.sh @@ -109,7 +109,6 @@ RemoveExtension() { # Remove admin css if [[ $admin_css != "" ]]; then PRINT INFO "Removing and unlinking admin css.." - updateCacheReminder sed -i "s~@import url(/assets/extensions/$identifier/admin.style.css);~~g" ".blueprint/extensions/blueprint/assets/admin.extensions.css" fi @@ -366,6 +365,7 @@ Command() { php artisan config:cache php artisan route:clear php artisan cache:clear + php artisan bp:cache } &>> "$BLUEPRINT__DEBUG" # Make sure all files have correct permissions.