2023-08-11 15:39:46 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
updateCacheReminder() {
|
2023-08-11 15:54:25 -04:00
|
|
|
cd &bp.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:37:37 -04:00
|
|
|
mv public/assets/extensions/blueprint/misc/cacheOverlay-$oldClassName public/assets/extensions/blueprint/misc/cacheOverlay-$newClassName;
|
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:37:37 -04:00
|
|
|
sed -i "s~cacheOverlay-$oldClassName~cacheOverlay-$newClassName~g" public/assets/extensions/blueprint/misc/cacheOverlay-$newClassName;
|
2023-08-11 15:39:46 -04:00
|
|
|
echo "$newClassName" > .blueprint/data/internal/db/randomclassname;
|
|
|
|
}
|