installEDEX and edex service mngr create and control /awips2/tmp

This commit is contained in:
mjames-upc 2018-01-23 17:51:44 -07:00
parent cf1b27b14d
commit 64ec85ec28
2 changed files with 9 additions and 1 deletions

View file

@ -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 ''

View file

@ -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