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.
|
2023-11-08 10:01:39 -05:00
|
|
|
oldClassName=$(cat .blueprint/extensions/blueprint/private/db/randomclassname);
|
2023-08-11 15:39:46 -04:00
|
|
|
newClassName=$RANDOM;
|
2023-11-08 10:01:39 -05:00
|
|
|
mv .blueprint/extensions/blueprint/assets/misc/cacheOverlay-$oldClassName.css .blueprint/extensions/blueprint/assets/misc/cacheOverlay-$newClassName.css;
|
|
|
|
sed -i "s~cacheOverlay-$oldClassName~cacheOverlay-$newClassName~g" .blueprint/extensions/blueprint/assets/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-11-08 10:01:39 -05:00
|
|
|
sed -i "s~cacheOverlay-$oldClassName~cacheOverlay-$newClassName~g" .blueprint/extensions/blueprint/assets/misc/cacheOverlay-$newClassName.css;
|
|
|
|
echo "$newClassName" > .blueprint/extensions/blueprint/private/db/randomclassname;
|
2023-08-11 15:39:46 -04:00
|
|
|
}
|