#!/usr/bin/env sh

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
