peliprint/blueprint/lib/updateAdminCacheReminder.sh

13 lines
809 B
Bash
Raw Normal View History

#!/bin/bash
updateCacheReminder() {
cd &bp.folder&
# Overwrite previous adminCacheReminderHider with the default one.
oldClassName=$(cat .blueprint/data/internal/db/randomclassname);
newClassName=$RANDOM;
2023-08-13 10:39:55 -04:00
mv public/assets/extensions/blueprint/misc/cacheOverlay-$oldClassName.css public/assets/extensions/blueprint/misc/cacheOverlay-$newClassName.css;
sed -i "s~cacheOverlay-$oldClassName~cacheOverlay-$newClassName~g" public/assets/extensions/blueprint/blueprint.style.css;
sed -i "s~cacheOverlay-$oldClassName~cacheOverlay-$newClassName~g" resources/views/layouts/admin.blade.php;
2023-08-13 10:39:55 -04:00
sed -i "s~cacheOverlay-$oldClassName~cacheOverlay-$newClassName~g" public/assets/extensions/blueprint/misc/cacheOverlay-$newClassName.css;
echo "$newClassName" > .blueprint/data/internal/db/randomclassname;
}