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
|
2023-12-03 12:35:54 -05:00
|
|
|
sed -i "s~I0TWHOPKAB-$oldClassName~I0TWHOPKAB-$newClassName~g" .blueprint/extensions/blueprint/assets/blueprint.style.css
|
|
|
|
sed -i "s~I0TWHOPKAB-$oldClassName~I0TWHOPKAB-$newClassName~g" resources/views/layouts/admin.blade.php
|
|
|
|
sed -i "s~I0TWHOPKAB-$oldClassName~I0TWHOPKAB-$newClassName~g" .blueprint/extensions/blueprint/assets/misc/cacheOverlay-$newClassName.css
|
2023-11-20 17:48:20 -05:00
|
|
|
echo "$newClassName" > .blueprint/extensions/blueprint/private/db/randomclassname
|
2023-12-03 12:34:37 -05:00
|
|
|
}
|