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-20 17:48:20 -05:00
|
|
|
oldClassName=$(cat .blueprint/extensions/blueprint/private/db/randomclassname)
|
|
|
|
newClassName=$RANDOM
|
|
|
|
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
|
|
|
|
sed -i "s~cacheOverlay-$oldClassName~cacheOverlay-$newClassName~g" resources/views/layouts/admin.blade.php
|
|
|
|
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
|
|
|
}
|