Changeset 750


Ignore:
Timestamp:
Jul 29, 2010, 1:51:13 PM (9 years ago)
Author:
duh
Message:

made uninstalling of development plugins configurable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • misc/scripts/deploy_latest_gscf.sh

    r744 r750  
    4747SVN=`which svn`
    4848APACHE_VHOST_FILES=/etc/apache2/sites-available/dbnp*
     49DEV_PLUGINS=( db-util nadd-neutralizer )
    4950
    5051# are we user tomcat?
     
    114115
    115116# uninstall development plugins
    116 echo $STAMP uninstalling db-util plugin
    117 grails uninstall-plugin db-util > /dev/null     
    118 echo $STAMP uninstalling nadd-neutralizer plugin
    119 grails uninstall-plugin nadd-neutralizer > /dev/null
     117index=0
     118while [ "$index" -lt "${#DEV_PLUGINS[@]}" ]
     119do
     120        if [ `find /home/tomcat/.grails/$GRAILS_VERSION/projects/gscf/plugins/${DEV_PLUGINS[index]}* -maxdepth 0 -type d|wc -l` -gt 0 ]; then
     121                echo $STAMP uninstalling ${DEV_PLUGINS[index]} plugin
     122                grails uninstall-plugin ${DEV_PLUGINS[index]} > /dev/null
     123        fi
     124        ((index++))
     125done
    120126
    121127# build production war
Note: See TracChangeset for help on using the changeset viewer.