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

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

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