core icon indicating copy to clipboard operation
core copied to clipboard

Undeploy-plugins.sh still removing sql files

Open mabouza opened this issue 14 years ago • 5 comments

If you run undeploy-plugins.sh on an instance where the schema hasn't been created the sql files get deleted and the schema can't be created anymore.

Here are the contents of WEB-INF/classes before running undeploy-plugins.sh

cache-configuration-region-large.xml META-INF cache-configuration-region-med.xml mssql.sql cache-configuration-region-small.xml mysql.sql cache-configuration.xml oracle.sql cache-jgroups-tcp.xml portal-ext.properties cache-jgroups-udp.xml portal.properties cache-jgroups.xml postgres.sql cactus.properties quartz.properties commons-logging.properties quartz_sequential.properties diff stxx.properties dotmarketing-config.properties system-ext.properties ehcache.xml system.properties esmapping.json xhtml hibernate.cfg.xml

Here are the contents after running undeploy-plugins.sh.

cache-configuration-region-large.xml esmapping.json cache-configuration-region-med.xml hibernate.cfg.xml cache-configuration-region-small.xml META-INF cache-configuration.xml portal-ext.properties cache-jgroups-tcp.xml portal.properties cache-jgroups-udp.xml quartz.properties cache-jgroups.xml quartz_sequential.properties cactus.properties stxx.properties commons-logging.properties system-ext.properties diff system.properties dotmarketing-config.properties xhtml ehcache.xml

mabouza avatar Jul 18 '12 19:07 mabouza

yes you cannot do this. You need to start the server before undeploying any plugins.

jtesser avatar Jul 18 '12 19:07 jtesser

meaning the removing of the files is on purpose.

jtesser avatar Jul 18 '12 19:07 jtesser

Is this documented anywhere? I see a use case being that I've created a config plugin that has been deployed before my initial start, only then I realize that I need a different DB endpoint. So I think to undeploy plugins make my change and then deploy again.

signed8bit avatar Jul 18 '12 19:07 signed8bit

you should just deploy in this case not undeploy. As far as plugins that add SQL and override our code/DB we recommend not adding these plugins till after the site is up.

So in summary. You should config in a plugin but all you need to do deploy again.

jtesser avatar Jul 18 '12 19:07 jtesser

Thanks Jason.

signed8bit avatar Jul 18 '12 20:07 signed8bit