2023-08-11 15:39:46 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
updateCacheReminder() {
|
2023-12-17 07:43:59 -05:00
|
|
|
cd "${BLUEPRINT__FOLDER}" || exit
|
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)
|
2023-12-17 07:43:59 -05:00
|
|
|
newClassName=$RANDOM$RANDOM$RANDOM$RANDOM
|
|
|
|
mv .blueprint/extensions/blueprint/assets/misc/cacheOverlay-"${oldClassName}".css .blueprint/extensions/blueprint/assets/misc/cacheOverlay-"${newClassName}".css
|
2023-12-03 12:53:19 -05:00
|
|
|
sed -i "s~cacheOverlay-$oldClassName~cacheOverlay-$newClassName~g" .blueprint/extensions/blueprint/assets/blueprint.style.css
|
2023-12-03 12:35:54 -05:00
|
|
|
sed -i "s~I0TWHOPKAB-$oldClassName~I0TWHOPKAB-$newClassName~g" resources/views/layouts/admin.blade.php
|
2023-12-17 07:43:59 -05:00
|
|
|
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
|
|
|
}
|