16 lines
No EOL
1,019 B
Bash
16 lines
No EOL
1,019 B
Bash
#!/bin/bash
|
|
#
|
|
# This script has been created as part of the Blueprint source code
|
|
# and uses the same license as the rest of the codebase.
|
|
|
|
updateCacheReminder() {
|
|
cd "${BLUEPRINT__FOLDER}" || exit
|
|
# Overwrite previous adminCacheReminderHider with the default one.
|
|
oldClassName=$(cat .blueprint/extensions/blueprint/private/db/randomclassname)
|
|
newClassName=$RANDOM$RANDOM$RANDOM$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~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
|
|
echo "$newClassName" > .blueprint/extensions/blueprint/private/db/randomclassname
|
|
} |