build/pre_upgrade.sh
author ymh <ymh.work@gmail.com>
Tue, 18 Oct 2016 16:02:54 +0200
changeset 358 be40e00aa56f
parent 353 bf1bc6b08c46
child 367 e0fb97c1e9c6
permissions -rw-r--r--
set path in rpm upgrade scripts

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

if [ -x /usr/local/bin/drush ]; then
    echo "Deactivate corpus module"
    /opt/remi/php56/root/usr/bin/php /usr/local/bin/drush -r /var/www/corpusdelaparole/drupal pm-disable -y corpus
fi