feat blueprint.sh install.sh remove.sh: use new bp:cache artisan command instead of updateCacheReminder

This commit is contained in:
prplwtf 2024-08-19 12:30:46 +02:00
parent fe6a8be103
commit c48de6859b
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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.

View file

@ -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.