2023-08-11 15:39:46 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
updateCacheReminder() {
|
2023-10-31 10:35:14 -04:00
|
|
|
cd $BLUEPRINT__FOLDER
|
2023-08-11 15:39:46 -04:00
|
|
|
# Overwrite previous adminCacheReminderHider with the default one.
|
|
|
|
oldClassName=$(cat .blueprint/data/internal/db/randomclassname);
|
|
|
|
newClassName=$RANDOM;
|
2023-08-13 10:39:55 -04:00
|
|
|
mv public/assets/extensions/blueprint/misc/cacheOverlay-$oldClassName.css public/assets/extensions/blueprint/misc/cacheOverlay-$newClassName.css;
|
2023-08-11 16:17:29 -04:00
|
|
|
sed -i "s~cacheOverlay-$oldClassName~cacheOverlay-$newClassName~g" public/assets/extensions/blueprint/blueprint.style.css;
|
2023-08-11 16:01:01 -04:00
|
|
|
sed -i "s~cacheOverlay-$oldClassName~cacheOverlay-$newClassName~g" resources/views/layouts/admin.blade.php;
|
2023-08-13 10:39:55 -04:00
|
|
|
sed -i "s~cacheOverlay-$oldClassName~cacheOverlay-$newClassName~g" public/assets/extensions/blueprint/misc/cacheOverlay-$newClassName.css;
|
2023-08-11 15:39:46 -04:00
|
|
|
echo "$newClassName" > .blueprint/data/internal/db/randomclassname;
|
|
|
|
}
|