From 64ec85ec283290e02ff0b0560ad87c823d8b9007 Mon Sep 17 00:00:00 2001 From: mjames-upc Date: Tue, 23 Jan 2018 17:51:44 -0700 Subject: [PATCH] installEDEX and edex service mngr create and control /awips2/tmp --- installEDEX.sh | 5 ++++- rpms/awips2.edex/Installer.edex/programs/edex | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/installEDEX.sh b/installEDEX.sh index 33dd936468..ae009a9e0e 100755 --- a/installEDEX.sh +++ b/installEDEX.sh @@ -60,7 +60,10 @@ service qpidd stop if [ ! -d /awips2/data_store ]; then mkdir -p /awips2/data_store fi -chown -R awips:fxalpha /awips2/data_store +if [ ! -d /awips2/tmp ]; then + mkdir -p /awips2/tmp +fi +chown -R awips:fxalpha /awips2/data_store /awips2/tmp if [[ $1 -eq "reinstall" ]]; then echo '' diff --git a/rpms/awips2.edex/Installer.edex/programs/edex b/rpms/awips2.edex/Installer.edex/programs/edex index 7a749c503b..5bbfb534a8 100755 --- a/rpms/awips2.edex/Installer.edex/programs/edex +++ b/rpms/awips2.edex/Installer.edex/programs/edex @@ -285,6 +285,11 @@ edex_setup() { # setup IP subnet and domains for EDEX, prompt user for confirm edex_start() { # start all edex services edex_cleanup + if [ ! -d /awips2/tmp ]; then + mkdir -p /awips2/tmp + fi + chown -R awips:fxalpha /awips2/data_store /awips2/tmp + if [ -f "/etc/init.d/edex_postgres" ]; then su -c "service edex_postgres start" fi