14 lines
309 B
Bash
14 lines
309 B
Bash
|
#!/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
|