From 7a2e54fc9261be96dc380b4a36550f5f91db494f Mon Sep 17 00:00:00 2001 From: mjames-upc Date: Thu, 9 Jul 2015 14:50:19 -0600 Subject: [PATCH] keep this as user ldm Former-commit-id: 605edfcb73bcb1c8101f607771ba4c73d36baa8e [formerly 96b769dbb2d0d7a44cd1d17d1d4617dc9c954061] [formerly f5283731801b89dd2592a60387042ceb0890687b [formerly e6ddafff9b6edc0a0fc96f7e25798d27797bb829]] Former-commit-id: f5283731801b89dd2592a60387042ceb0890687b Former-commit-id: e50b9363a9348cacd4052c52547cd4ef3dd052b5 --- rpms/awips2.upc/Installer.ldm/component.spec | 26 ++++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/rpms/awips2.upc/Installer.ldm/component.spec b/rpms/awips2.upc/Installer.ldm/component.spec index e821c97fcb..df639d0573 100644 --- a/rpms/awips2.upc/Installer.ldm/component.spec +++ b/rpms/awips2.upc/Installer.ldm/component.spec @@ -50,7 +50,7 @@ fi %install # create the ldm directory -/bin/mkdir -p %{_build_root}/home/awips/ldm/SOURCES +/bin/mkdir -p %{_build_root}/usr/local/ldm/SOURCES if [ $? -ne 0 ]; then exit 1 fi @@ -72,7 +72,7 @@ if [ $? -ne 0 ]; then fi -_ldm_destination=%{_build_root}/home/awips/ldm +_ldm_destination=%{_build_root}/usr/local/ldm _ldm_destination_source=${_ldm_destination}/SOURCES _NATIVELIB_PROJECTS=( 'edexBridge' 'decrypt_file' ) @@ -174,14 +174,14 @@ fi chown -R ldm:fxalpha ${_ldm_dir} # create .bash_profile -if [ ! -f /home/awips/.bash_profile ]; then +if [ ! -f /usr/local/ldm/.bash_profile ]; then echo 'umask 002' > \ - /home/awips/.bash_profile + /usr/local/ldm/.bash_profile echo 'export PATH=$HOME/decoders:$HOME/util:$HOME/bin:$PATH' >> \ - /home/awips/.bash_profile + /usr/local/ldm/.bash_profile echo 'export MANPATH=$HOME/share/man:/usr/share/man' >> \ - /home/awips/.bash_profile - /bin/chown awips:fxalpha /home/awips/ldm/.bash_profile + /usr/local/ldm/.bash_profile + /bin/chown ldm:fxalpha /usr/local/ldm/.bash_profile fi pushd . > /dev/null 2>&1 @@ -231,8 +231,8 @@ do fi done /bin/chmod a+x ${_ldm_dir}/bin/* -/bin/chown awips:fxalpha ${_ldm_root_dir}/bin -/bin/chown -R awips:fxalpha ${_ldm_dir}/etc ${_ldm_dir}/decoders +/bin/chown ldm:fxalpha ${_ldm_root_dir}/bin +/bin/chown -R ldm:fxalpha ${_ldm_dir}/etc ${_ldm_dir}/decoders popd > /dev/null 2>&1 # construct pqact @@ -262,7 +262,7 @@ if [ $? -ne 0 ]; then echo "FATAL: failed to remove edexBridge.tar and decrypt_file.tar!" exit 1 fi -/bin/chown -R awips:fxalpha ${_ldm_dir}/SOURCES +/bin/chown -R ldm:fxalpha ${_ldm_dir}/SOURCES if [ $? -ne 0 ]; then echo "FATAL: failed to change owner of ldm SOURCES directory." exit 1 @@ -335,9 +335,9 @@ rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,awips,fxalpha,-) -%dir /home/awips/ldm -%dir /home/awips/ldm/SOURCES -/home/awips/ldm/SOURCES/* +%dir /usr/local/ldm +%dir /usr/local/ldm/SOURCES +/usr/local/ldm/SOURCES/* %attr(755,root,root) /etc/profile.d/awipsLDM.csh %attr(755,root,root) /etc/profile.d/awipsLDM.sh