deleted duplicate edex_static colormaps wrote delta script for site/user cave_static colormaps to move to common_static Change-Id: I53c86d0974706023608e1ec5e10f34619aafb8de Former-commit-id:6d7d504f20
[formerly960dc1e81e
] [formerlya1a9a4751a
] [formerly6d7d504f20
[formerly960dc1e81e
] [formerlya1a9a4751a
] [formerly27dd27a73f
[formerlya1a9a4751a
[formerly 4383d88a37c9ae9298f7ea9081d87d6ded34de66]]]] Former-commit-id:27dd27a73f
Former-commit-id:9c6c35e033
[formerly04d55ac1c0
] [formerly 5da0c0771f6b8cf3997cc0c8fb770658e04f2445 [formerly15006517a2
]] Former-commit-id: 77dc1df5e9af04c402774c681981e485f8b8553d [formerly22861240c8
] Former-commit-id:077c619bbf
25 lines
655 B
Bash
25 lines
655 B
Bash
#!/bin/bash
|
|
# This script will move any non-base colormaps from cave_static to common_static.
|
|
#
|
|
# This update is required with 13.6.1.
|
|
#
|
|
# This update is only for edex servers which host the cave localization files
|
|
#
|
|
|
|
echo "INFO: Moving all colormaps to common_static."
|
|
|
|
IFS=$'\n'
|
|
commonFiles=`find /awips2/edex/data/utility/cave_static/*/*/colormaps/ -iname '*.cmap'`
|
|
|
|
for f in $commonFiles; do
|
|
newf=${f//cave_static/common_static}
|
|
if [ -e "$newf" ]; then
|
|
echo Cannot upgrade $f because $newf already exists
|
|
else
|
|
mkdir -p `dirname $newf`
|
|
mv "$f" "$newf"
|
|
fi
|
|
done
|
|
|
|
echo "INFO: The update finished successfully."
|
|
exit 0
|