dokuwiki-sandstorm/.sandstorm/build.sh

14 lines
309 B
Bash
Raw Normal View History

2015-11-16 03:57:07 +00:00
#!/bin/bash
# Checks if there's a composer.json, and if so, installs/runs composer.
set -euo pipefail
cd /opt/app/dokuwiki
if [ -f /opt/app/dokuwiki/composer.json ] ; then
if [ ! -f composer.phar ] ; then
curl -sS https://getcomposer.org/installer | php
fi
php composer.phar install
fi