EDEX install script will check /etc/security/limits.conf and add entries for awips user if needed
This commit is contained in:
parent
1c59ee9ea9
commit
cb75abcdf9
2 changed files with 20 additions and 2 deletions
|
@ -5,12 +5,30 @@
|
|||
#
|
||||
# 10/15 mjames@ucar.edu Creation
|
||||
#
|
||||
|
||||
#
|
||||
# Download yum repo file from Unidata
|
||||
#
|
||||
if [ ! -f /etc/yum.repos.d/awips2.repo ]; then
|
||||
echo ''
|
||||
echo 'Downloading awips2repo yum file to /etc/yum.repos.d/awips2.repo'
|
||||
echo ''
|
||||
wget -O /etc/yum.repos.d/awips2.repo http://www.unidata.ucar.edu/software/awips2/doc/awips2.repo
|
||||
fi
|
||||
|
||||
#
|
||||
# Check for and add to limits.conf
|
||||
#
|
||||
if [[ $(grep awips /etc/security/limits.conf) ]]; then
|
||||
echo "/etc/security/limits.conf OK"
|
||||
else
|
||||
echo "adding awips user entries to /etc/security/limits.conf ..."
|
||||
printf "awips soft nproc 65536\nawips soft nofile 65536\n" >> /etc/security/limits.conf
|
||||
echo "done with /etc/security/limits.conf"
|
||||
fi
|
||||
#
|
||||
# Clean yum cache
|
||||
#
|
||||
echo ''
|
||||
echo "Running 'yum clean all'"
|
||||
echo ''
|
||||
|
|
|
@ -122,7 +122,7 @@ fi
|
|||
if [ "${1}" = "-pydev" ]; then
|
||||
#buildRPM "awips2-python"
|
||||
#buildRPM "awips2-python-awips"
|
||||
#buildRPM "awips2-python-jep"
|
||||
buildRPM "awips2-python-jep"
|
||||
#buildRPM "awips2-python-numpy"
|
||||
#buildRPM "awips2-python-pyparsing"
|
||||
#buildRPM "awips2-python-six"
|
||||
|
@ -131,7 +131,7 @@ if [ "${1}" = "-pydev" ]; then
|
|||
#buildRPM "awips2-pypies"
|
||||
|
||||
#buildRPM "awips2-python-cycler"
|
||||
buildRPM "awips2-python-shapely"
|
||||
#buildRPM "awips2-python-shapely"
|
||||
#buildRPM "awips2-python-cython"
|
||||
|
||||
#buildRPM "awips2-python-metpy"
|
||||
|
|
Loading…
Add table
Reference in a new issue