build/post_upgrade.sh
author ymh <ymh.work@gmail.com>
Tue, 18 Oct 2016 14:38:56 +0200
changeset 353 bf1bc6b08c46
parent 346 4cd0f8c936ed
child 358 be40e00aa56f
permissions -rw-r--r--
correct provisioning to install drush and correct config files + module definition for menu access problem
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
28
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
#!/usr/bin/env sh
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
346
4cd0f8c936ed upgrade build and delivery process for integration
ymh <ymh.work@gmail.com>
parents: 28
diff changeset
     3
if [ -x /usr/local/bin/drush ]; then
353
bf1bc6b08c46 correct provisioning to install drush and correct config files + module definition for menu access problem
ymh <ymh.work@gmail.com>
parents: 346
diff changeset
     4
    echo "Reactivate corpus module"
bf1bc6b08c46 correct provisioning to install drush and correct config files + module definition for menu access problem
ymh <ymh.work@gmail.com>
parents: 346
diff changeset
     5
    /usr/local/bin/drush -r /var/www/corpusdelaparole/drupal pm-enable -y corpus
bf1bc6b08c46 correct provisioning to install drush and correct config files + module definition for menu access problem
ymh <ymh.work@gmail.com>
parents: 346
diff changeset
     6
    echo "Clear drupal cache"
346
4cd0f8c936ed upgrade build and delivery process for integration
ymh <ymh.work@gmail.com>
parents: 28
diff changeset
     7
    /usr/local/bin/drush -r /var/www/corpusdelaparole/drupal cc all
4cd0f8c936ed upgrade build and delivery process for integration
ymh <ymh.work@gmail.com>
parents: 28
diff changeset
     8
fi
4cd0f8c936ed upgrade build and delivery process for integration
ymh <ymh.work@gmail.com>
parents: 28
diff changeset
     9
4cd0f8c936ed upgrade build and delivery process for integration
ymh <ymh.work@gmail.com>
parents: 28
diff changeset
    10
echo "Restart httpd"
28
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
/usr/bin/systemctl restart httpd