move manual data directory chmod to explicit rather than in %files for edex rpm install

This commit is contained in:
mjames-upc 2015-03-06 13:41:02 -07:00
parent adfc9a966c
commit e0e7c78472
2 changed files with 4 additions and 2 deletions

View file

@ -119,6 +119,7 @@ function restoreCAVEAndFail()
echo "restoring backup COMPLETE: ${LOG_TIMESTAMP}"
cleanupUnzip
exit 1
echo "function restoreCAVEAndFail complete"
}
# Set all paths required by CAVE before installing.
@ -135,7 +136,7 @@ export PATH=/awips2/java/bin:/awips2/python/bin:${PATH}
export JAVA_HOME="/awips2/java/jre"
# Set the CAVE logfile location.
export LOGFILE_CAVE=/dev/null
export LOGFILE_CAVE=/awips2/cave/logs/
# Use the eclipse p2 manager.
CAVE_EXE="/awips2/cave/cave"

View file

@ -146,6 +146,8 @@ if [ -d /awips2/.edex ]; then
rm -rf /awips2/.edex
fi
chmod 775 /awips2/edex/data/manual
%preun
if [ "${1}" = "1" ]; then
exit 0
@ -174,7 +176,6 @@ rm -rf ${RPM_BUILD_ROOT}
%dir /awips2/edex/logs
%dir /awips2/edex/webapps
%attr(775,awips,fxalpha) /awips2/edex/data/manual
%defattr(755,awips,fxalpha,755)
%dir /awips2/edex/bin