Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #99 from Jahia/PAAS-951-fix-reset-JR_J_LOCAL_REVIS…
Browse files Browse the repository at this point in the history
…IONS-after-a-clone

PAAS-951: Fix reset JR_J_LOCAL_REVISIONS after a clone
  • Loading branch information
laurentfufu committed May 4, 2020
2 parents bca3f68 + 40641c6 commit e0e256a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions onAfterClone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ onInstall:
- installGaleraCluster

- resetHaproxyBackends: bl
- cmd[proc]: |-
query="delete from JR_J_LOCAL_REVISIONS"
mysql -h $DB_ENDPOINT -u $DB_USER -p$DB_PASSWORD -s jahia -e "$query"
- cmd[proc, cp]: |-
rm /opt/tomcat/logs/*
if [ $(echo $DX_VERSION | sed 's/\.//g') -lt 7232 ]; then
Expand All @@ -30,8 +33,6 @@ onInstall:
sudo rm /data/digital-factory-data/repository/revisionNode
sudo rm -f /data/digital-factory-data/karaf/etc/org.jahia.modules.marketingfactory.settings-mf.cfg
sed -i "s/\(.*serverId.*=\).*/\1 $HOSTNAME/g" /opt/tomcat/conf/digital-factory-config/jahia/jahia.node.properties
query="delete from JR_J_LOCAL_REVISIONS"
mysql -h $DB_ENDPOINT -u $DB_USER -p$DB_PASSWORD -s jahia -e "$query"
sudo service tomcat start
- environment.control.ApplyNodeGroupData [proc, cp]:
data:
Expand Down

0 comments on commit e0e256a

Please sign in to comment.