build/post_install.sh
author ymh <ymh.work@gmail.com>
Fri, 21 Oct 2016 13:50:03 +0200
changeset 380 b4f69e646e44
parent 346 4cd0f8c936ed
child 410 240ca282331d
permissions -rw-r--r--
add artisan action after upgrade, correct provisioning

#!/usr/bin/env sh

if [ -d /var/www/corpusdelaparole/corpus-back/ ]; then
    pushd /var/www/corpusdelaparole/corpus-back/

    echo "Correcting file permissions for back office"
    chgrp -R apache storage bootstrap/cache
    chmod -R ug+rwx storage bootstrap/cache

    popd
fi


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