build/post_upgrade.sh
author ymh <ymh.work@gmail.com>
Fri, 21 Oct 2016 09:26:28 +0200
changeset 379 0b14f178ca53
parent 367 e0fb97c1e9c6
child 380 b4f69e646e44
permissions -rw-r--r--
No limitation on the number of item at this level. It has already been checked when preparing the query parameters

#!/usr/bin/env sh
PATH=/opt/remi/php56/root/usr/bin/:$PATH

if [ -x /usr/local/bin/drush ]; then
    echo "Reactivate corpus module"
    /usr/local/bin/drush -r /var/www/corpusdelaparole/drupal pm-enable -y corpus
    echo "Clear drupal cache"
    /usr/local/bin/drush -r /var/www/corpusdelaparole/drupal cc all
fi

echo "Restart httpd"
/usr/bin/systemctl restart httpd